Gettings rotation and position of a child...

Blitz3D Forums/Blitz3D Programming/Gettings rotation and position of a child...

OrcSlayer(Posted 2004) [#1]
I don't have a clue, I can't seem to get the position or rotation of any child objects. This is driving me crazy, keeps me from doing some of the simplest things. Can someone point me in the right direction here?

Thanks,
Orcslayer


Zethrax(Posted 2004) [#2]
Child objects are just standard Blitz entities. As long as you have the entity handle of the child you should be able to use the standard Blitz entity commands to get their position and rotation.

Perhaps you could post some code to show us what you're trying to do and how you're going about it.


Rob Farley(Posted 2004) [#3]
To get a child world position

entityx(child,true)
etc

Make sure you have the true flag set.


_PJ_(Posted 2004) [#4]
The same for EntityYaw() etc.

The True parameter (if set) means Global values are returned, otherwise, the value returned will be Local to the Parent.


OrcSlayer(Posted 2004) [#5]
Ah, I looked all over the documentation but for some reason didn't think to check the commands I was actually using. Didn't realize those commands had a global option, now I'm on track. Thanks a lot!