Camera management for racing game

Software: Away3D 4.x

Razorblade, Newbie
Posted: 11 June 2012 08:41 AM   Total Posts: 7

Hi everyone,
I’ve already searched the forum and “googled” the web for this, but I did not find anything helpful.

I want to create a camera that follows the car and align toward it smoothly.
I did some experiments with HoverController, but at a certain angle the camera stops, make me see the side of the car first then the front and then it works again until a certain rotation angle (maybe something related to gimbal lock?).

This is a piece of my current code at enterFrame

cameraController.panAngle 180 car.getRigidBody().rotationY

Does anybody have an example of a working camera for a racing game?

Thanks

   

Shegl, Sr. Member
Posted: 11 June 2012 10:37 AM   Total Posts: 134   [ # 1 ]

Did you try CameraLookAt + CheckDistance + Tween Camera ?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X