Game Development Community

GCamFXMgr Update in Camera Class

by Kiyaku · in Torque Game Engine · 10/02/2008 (1:28 pm) · 2 replies

Hi,
i realized the CameraShake just works when setControlObject is set to a AIPlayer/Player.

Though i want to use it on the camera itself, when the ControlObject is set to the camera.

Someone told me the update function must be add to the camera class cause only the player class does update that.

Could someone help me doing this? Would be great!

Bye,
Sven

#1
10/02/2008 (1:44 pm)
Take a look in Player::processTick (), Player::interpolateTick () and Player::advanceTime (). Take the parts where it mentions camFX, and move those to the same functions in Camera.
#2
10/02/2008 (3:07 pm)
Ok Thanks for the hint, that worked. I forgot to add something to the interpolateTick.