Game Development Community

Setting rotation/axis point of Sprite Object

by Stanley D Chatman · in Torque Game Builder · 01/25/2007 (7:14 am) · 2 replies

Is there a way to set the rotation point of an object. For instance I have a shovel sprite object and currently it rotates at the center and I would like it to rotate more towards the bittom handle.

#1
01/25/2007 (12:34 pm)
This is a common problem. You have to do it by creating an extra alpha on one end of the shovel so the sprite is rotating around the center, but the center is toward one end of the visible sprite. Check out the car sprite in the simple car physics resource on TDN for an example.

#2
01/25/2007 (1:57 pm)
You could mount ypur object to a scene object and move the link point until the point you want to rotate around is in the center (you may need to adjust the size of the empty object).

Saves on video memory.