Game Development Community

Rotating around a linkpoint by script ?

by Lexe · in Torque Game Builder · 08/06/2011 (3:20 pm) · 1 replies



I'd like to know how to rotate a static sprite around it's linkpoint by script?
Is it possible to dynamically place linkpoints on sprites by script ?

Any help would be appreciated :)


#1
08/07/2011 (1:46 am)
It is possible to create link points I think, but instead you'll probably want to just mount one object to another with mount() method of t2dSceneObject.

There is also setMountRotation() and a few other methods to control mounted object.