Rotate around object
by Kiyaku · in Torque Game Builder · 06/17/2007 (11:37 pm) · 1 replies
Hi,
how can i let an image rotate around another one? To make it "easier", the image have to rotate around the 0|0 coordinates.
I tried to mount the image to another one on the nullpoint, but then its on it's mountpoint position.
So how can i do that? :x
how can i let an image rotate around another one? To make it "easier", the image have to rotate around the 0|0 coordinates.
I tried to mount the image to another one on the nullpoint, but then its on it's mountpoint position.
So how can i do that? :x
Associate David Higgins
DPHCoders.com
Basically, the clock face in the example is one image, each of the hands are different images ... to get the hands to rotate around the clock from the center point ... without making the clock hand images larger then necessary ... I created empty Scene Objects then mounted the clock hands to these scene objects where they belonged ... the sceneobjects where the size of the clock face ... but the hands were mounted with an offset ... then I rotated the scene object ... telling the hands to track the rotation ... and viola ... they rotate around the clock face like you'd expect them to in real life ...
In your situation, the same applies ... however, the offset and the scene object and all that stuff may or may not be necessary ...
Give the example a quick look, see if it tells you what you need ... if not ... try to re-explain your problem with more detail and I'll try again :)