Game Development Community

Sprite rotation pivot

by Blab Blab · in Torque X 2D · 07/25/2007 (1:59 pm) · 1 replies

Hey guys.

New to TorqueX and GG products in general so go easy on me if I don't use the correct terms for stuff :)

Say I have a material of a Turret where the turret base is drawn in the bottom of the texture as such:

__________
| | |
| _|_ |
| | | |
| |__| |
|_________|

Is it possible to define a point on the texture around which it rotates (normally called a rotation pivot). I just can't seam to find it in TXB OR in the api.

Regards

- Edit
Ok these boards are not friendly to asci art - hope you get the idea anyhow.

About the author

Recent Threads


#1
07/25/2007 (2:39 pm)
Currently, Torque X only supports rotation about the center of an object. The two common ways to get around this are to modify the art to include empty space so that the center of the image works as the point of rotation, or to mount the image off-center to a blank scene object which rotates.