how to transform child elements position into a world position
- by MrGreg
So Im making a 2d space game and I have a bunch of spaceships that have turrets. Objects have a position and orientation, the ships being in world coordinates while the turrets are children and coordinates are relative to their parents.
How do I efficiently calculate the position of a turret in world coordinates (i.e. when it fires and I need to…