Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by Spirit-X

The tag is telling me how the object is rotating around it's own axes. Those axes are local to the object and move with it, as you say. I want to know how the object is rotating around the world axes, regardless of it's local orientation.

I want this data to implement a particular control method for a flying vehicle. The vehicle is controls its rotation with the 'camera relative' Left Stick (the page 2 one on the Controller Sensor), therefore I don't care how it's rotating around it's own local axes, because I'm not controlling that.

When I push forward and back on my left stick, the object rotates around the 'world' X axis, whatever it's local orientation may be. Likewise, when I push left and right, the vehicle rotates around the world z axis. In other words, the rotators on the vehicle are set to world, not local.

So, as the vehicle controls relative to the world axis, it would very useful to know my rotations, relative to the world axis. In this situation the local rotation data is not very useful...or at least not unless I go through a lot of logic to try and manually convert it into 'world' relative data. I wondered if there's an easier way for me to get those rotations.

Oh dear! Your browser is either unsupported or there has been a problem loading the page.