Game Development Community

Rotation around object CENTER

by Kai Ludwig · in Torque Game Engine · 03/20/2006 (4:47 pm) · 2 replies

If I rotate an object via setTransform, it rotates around the pivot of the bounding box.

How can I rotate it around it's center?

#1
03/21/2006 (10:35 am)
Try getBoxCenter(box), or something similar.
#2
03/21/2006 (10:39 am)
Taking a look at the rotate code in the editor may be a good starting point.