Game Development Community

Rotating Objects-Help-Please

by John David Uy · in General Discussion · 03/08/2005 (6:28 pm) · 6 replies

Curently I am novice in Torque. I hope someone could help me in this matter.

I'm planning to rotate a stationary object in the game.

CONSTRAINS
Constrain #1:
The rotation should be controlled, say I could stop/pause/continue its rotation.

Constrain #2:
I can control the speed of the rotation.

Constrain #3:
I can control its direction through a slider_gui.

PROBLEM
Problem #1:
I don't know which object type(Ite) should I be using to make this work. (I even don't know if I am asking the right/appropriate question for this)

Problem #2:
I'll be using also mounted objects. how do i go about this?

IDEASITHINKISTHESOLUTIONBUTDONTKNOWWHERETOSTART
Hypothetical Solution #1:
Using Animated DTS or

Hypothetical Solution #2:
using variable then scheduling it to a loop.

If anyone could help me in ideas or specific solutions, I would very much appriciate them. Thanks.

About the author

Here's my development blog... http://my-pseudocode-life.blogspot.com/


#1
03/09/2005 (11:51 am)
I believe your "Solution #1" will work the best for you, because I can already imagine it working... I don't know much about coding torquescript, but I think it would be too much hassle when you can get the same result easier with the animated DTS way.
#2
03/09/2005 (12:15 pm)
I really don't know if there is an EASY answer for this problem.

Items do rotate, but you cannot start/stop them, they either rotate or not and you cannot determine their rotating speed.

So you could alter the engine to create an object that inherit from item and tweak the rotating issues.

BTW, I beleive you would get better ideas by posting this in the private forums.
#3
03/10/2005 (1:54 am)
I tried using setTransform and be scheduled in a loop. The problem now was it's not a smooth rotation.

By the way, how do I post this in the private forum?
#4
03/10/2005 (7:19 am)
You'll need to purchase the Torque license to do that and view the resources.
#5
03/10/2005 (5:15 pm)
I am a licensed indie. So where exactly can I post this?