Game Development Community

Camera relative movement using T3DGroundControlComponent?

by Mogens Hvidtfeldt · in Torque X 2D · 09/05/2008 (12:54 am) · 1 replies

Im making a game where i want camera relative movement of player characters. This means that if stick is pulled left the character should move left relative to the camera.

As i want to avoid (atleast for now) making my own ground control I am trying to use T3DGroundControlComponent/OnGroundControlState but it seems to only support character relative movement (left/right strafes, forward/back moved character in nose dir or backwards). Does anyone have any good idears of how this can be done?

One solution I am considering is to modify the Move value passed to OnGroundControlState.UpdateControl - but is that the best solution ?

#1
09/05/2008 (6:54 am)
Mogens,

Are you suggesting that the cam actually moves with the Character - similar to the 3rd person cam?

If that is the case - you can simply create a camcontroller, that is part of the player.

There is actually a pretty good WIKI on it already, and a even better example in the FPS.


Sean