Game Development Community

Object Rotation

by Nelson A. K. Gonsalves · in Torque Game Engine · 11/27/2001 (9:15 am) · 1 replies

How do you set the object rotation via scripts?
When I set the rotation variable nothing happens...

What Im trying to do is: I saved all data from the player object to a file.
Then I want to load it all back to recreate the player. All variables load up perfectly, including player location, backpack, items, equiped items, etc... but the rotation... the player always load up looking to the same standard direction, no matter what his rotation variable is set to...
Am I doing something wrong? must I use some command to rotate an object?

Any help would be appreciated as always.

#1
12/02/2001 (1:50 pm)
I think the rotation property doesn't work for the player, I have no idea why. Other functions, such as spawning, use the setTransform() method which will set the player's rotation.