Parenting

BlitzMax Forums/MiniB3D Module/Parenting

North(Posted 2007) [#1]
Hi there,

could someone experienced with B3D tell me if the following code is

a) plain wrong
b) a bug with miniB3D



This never moves the Children to where the parent(pivot) is.


H&K(Posted 2007) [#2]
a) It doesnt Look wrong. Will run it later at home.


bradford6(Posted 2007) [#3]
hmmm.

this works:




simonh(Posted 2007) [#4]
This never moves the Children to where the parent(pivot) is.

It does. You're printing out the values of px, py, pz, which a) you shouldn't really do, you should use EntityX/Y/Z instead, and b) px, py, pz are the local positional values, meaning the children are positioned 0 units away fromt the parent.

Use EntityX/Y/Z(True) to get global co-ordinate values.


North(Posted 2007) [#5]
Well that just explained a number of oddities i have been experiencing.
Thanks alot!