parent bug

BlitzMax Modules Forums/MiniB3D/parent bug

if i load a ship model and parent it to a cube,
then if i create a sprite (as a bullet) and try to parent it to the model or position it relative to the model it gets messed up

as in all bullet sprites movement behave strangely, they all facce the same direction no martter what direction the ship[ is facing.

this doesnt happen when the ship is not parented to a cube

Code sample please.

ok here you go..

http://www.mediafire.com/?sharekey=7fb9198e2302b26c931c7453395df025e04e75f6e8ebb871

I made a download just to make sure it reproduces the bug

did you take a look yet?

Not yet, will take a look this weekend. Thanks for the sample.

I can't see any problem with that - it seems to work as I would expect it to. Commenting out the EntityParent line doesn't seem to change anything.

I need a better sample and/or description of what's going wrong exactly.

if you play with it for a little while (turning the ship and firing bullets) youll notice that some bullets get stuck to the back of the ship, but this never happens if the line is commented out that parents the ship to the cube.

EDIT- hmm the behaviour happens even when the line is commented out, do you know why?