restricting angles of movement
by Sebastiao P. de Almeida · in Torque Game Engine · 01/13/2003 (8:57 am) · 2 replies
I'm working on a game with flying vehicles and I would like to restrict the roll angle, as well as the "cone" in which the player moves (you know, to keep him facing a certain direction). There is some easy way to do it?
Thanx for your time
Thanx for your time
Torque Owner Tim Gift
Putting the hard clamp on the orientation would probably take place in the Vehicle::updatePos method, though that approach probably won't work well if the vehicle is still allowed to collide with objects.