Game Development Community

Stationary Camera

by Neil Marshall · in Torque Game Engine · 09/02/2002 (11:36 am) · 3 replies

I'm trying to lock the player in place while a race count down is going on, so I'm looking into the different camera modes.

I couldn't find anything in the script so I took a look at camera.h and I noticed it defines a variable

StationaryMode = 0,

The only problem is, that's the only place it is mentioned. Has a stationary camera not been programmed into the engine?

#1
09/02/2002 (12:13 pm)
The camera will orbit a point, you dont want to mess with the camera here, its the player youre trying to keep in place.

Simply eat any moves generated from the client move while the player is disabled (add a disablePlayer function that sets a IsDisabled bool).

Phil.
#2
09/02/2002 (12:19 pm)
yeah. Well right now I just let them orbit, but it would be nice to just be able to freeze the camera in it's tracks.
#3
09/02/2002 (12:31 pm)
If you're trying to lock players in place why not just use a different ActionMap, which prevents the players from using the control.