Game Development Community

DTS Rotation

by Robert Stewart · in Torque Game Engine · 08/13/2005 (5:17 pm) · 4 replies

TGE 1.3 does not allow DTS shapes to rotate except for the Z from what I have read. Is there a simple way to make the DTS shapes rotate? Will TGE 1.4 or TSE have any new code to make this easier.
NOTE: Im looking for someone to buy me Tim Astes Combo Pack 2, because I have no credit card. I use PayPal and would pay you in advance if your an active garage games member. If this is illegal just let me know. (Im in a hurry and have just issued my credit card today, I need this pack today)

#1
08/13/2005 (5:22 pm)
DTS and 3space are just file format/rendering technologies. It's up to individual object types to call the 3space code and cause rendering to occur. The Item class and Player class clamp rotation around the Z axis because it made sense for those classes to act that way. TSStatic and StaticShape enforce no such restriction; try it.
#2
08/13/2005 (5:27 pm)
To be more specific I would like to rotate a Player class.
This is a space sim(well kinda..), Basically what im trying to do is have it so you hold the cursor down and it locks the ships nose position on the cursor, so you can drag the nose, Basically like in freelancer. Any tips on trying to do this? I was thinking rotation should solve this.
#3
08/15/2005 (10:40 am)
It would, but it's rotation in the simulation and networking code; nothing to do with DTS.

You know, there's already a class that allows full 3d rotation - the vehicle class. Have you tried using that instead? I once went through the hastle of making a fully rotatable player class, then realized that I had ended up with something indistinguishable from a subclass of Vehicle.
#4
08/15/2005 (2:54 pm)
Oh man, Ben thanks for pointing that out. Im using it for a ship anyway so why not use vehicle class. Thanks.