I’d like to be able to move and object where the reference frame is it’s current transformation and rotation.
Say, you have an object at location 0,0,0 with a rotation of 0,0,0. Doing this:
rotate(0, 180, 0);//180 degrees
translate(0, 0, 1f);
would make it’s new position 0, 0, -1f
, since it’s moving “forward” relative to itself but backwards (-1f in the z axis) relative to the world.
Is this kind of functionality available?