Gettings rotation and position of a child...
Blitz3D Forums/Blitz3D Programming/Gettings rotation and position of a child...
| ||
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 |
| ||
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. |
| ||
To get a child world position entityx(child,true) etc Make sure you have the true flag set. |
| ||
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. |
| ||
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! |