[Solved] Camera stuttering following an Actor

ramar

01-10-2007 00:29:54

Hi guys! I have a stuttering problem with a camera locked on a body. I did some searches in the forum but i didnt find an answer. Well, i have this code in my FrameStarted


mCamera->setPosition(myCar->getGlobalPosition()+Vector3(0,10,20) );
mCamera->lookAt(myCar->getGlobalPosition());


MyCar stutter like hell! I tried to update the mCamera not every frame, but the problem is the same. I tried to lock the camera to a wheel to (instead the cary body), same results. Any idea? :D

Aiursrage2k

01-10-2007 00:38:35

When you create the scene make it a variable time step.

ramar

01-10-2007 00:46:44

and sorry for my noobish, how can i set it?

ramar

01-10-2007 00:59:19

Did it!

mScene = mWorld->createScene("Main", mSceneMgr, "gravity: yes, floor: no, time-step-method: variable");

Thank you!