Game Development Community

Auto Mount Rotation Question

by Nicolai Dutka · in Torque Game Builder · 06/03/2008 (1:27 pm) · 3 replies

I have a shield which I apply to the player and have it rotate around the player in circles (orbit) using this:

$player1.setAutoMountRotation(500);

Ok, so now I am trying to mount a particle effect to the player. The problem is, the previous line of code makes evertything I mount to the player spin circles around that player.

Is there a way to make just the one item orbit the player but not the other? (keeping in mind that both are mounted to said player...)

#1
06/03/2008 (1:33 pm)
Maybe theres some other way, but this might work...

Object P = Player object
Object I = Invisible object with automount rotation set mounted to P
Object O = Object which orbits the player mounted to I
Object N = Object which does not orbit mounted to P
#2
06/03/2008 (2:25 pm)
Ahhh.... yes, that will do nicely. TY!
#3
06/06/2008 (6:41 am)
... and don't forget that you can create "t2dSceneObject" to get an invisible object. It's better than creating a static-sprite (or anything else) and not applying graphics to it.

Melv.