PointEntity?

Blitz3D Forums/Blitz3D Beginners Area/PointEntity?

FunTex(Posted 2004) [#1]
My character must be able to move all around his litle planet. Im using PointEntity from my character to a pivot at the planetcore, and then moving my character down his own y axis wich is pointed towards the planet core.
BUT... I need my character to be able to look around, rotating around his y axis (yaw), but PointEntity takes control of both his Pitch and yaw. So... I need to control only his pitching x axis, and point it so his y axis is towards the planet core at all times, and still be able to rotate him around his y axis, yaw'ing beautifully around..
Thanks...


BlitzSupport(Posted 2004) [#2]
You should be able to use PointEntity and then modify his yaw afterwards (it might help to store it first -- yaw = EntityYaw (entity) -- and re-set it after PointEntity), but it's hard to visualise exactly what you're doing, so dunno if that's gonna help!


(tu) sinu(Posted 2004) [#3]
there's a function the code archives which can be modified to suite your needs.


Rob Farley(Posted 2004) [#4]
Or put a pivot where the character is, point the pivot then pick up the entitypitch(pivot).