I need quick help at this. I want to set up a cam using Copperlicht only. I have the script from the tuts but now I can“t pan the view.
I know this should be working as soon as I create a cam in Coppercube - but I would like to try it without CC... var cam = new CL3D.CameraSceneNode(); cam.Pos.X = 0; cam.Pos.Y = 325; cam.Pos.Z = 0; cam.setFarValue(10000);
// add an animator which makes the camera move by keyboard and mouse input var animator = new CL3D.AnimatorCameraFPS(cam, engine); animator.MoveSpeed = 1; animator.RotateSpeed = 150; animator.MaxVerticalAngle = 0; animator.setLookByMouseDown(true); // look when the mouse is moved cam.addAnimator(animator); scene.getRootSceneNode().addChild(cam); scene.setActiveCamera(cam); // add the collision response animator to collide against walls var colanimator = new CL3D.AnimatorCollisionResponse( new CL3D.Vect3d(40,5,40), // size of the player ellipsoid new CL3D.Vect3d(0,0,0), // gravity direction new CL3D.Vect3d(0,318,0), // position of the eye in the ellipsoid scene.getCollisionGeometry()); cam.addAnimator(colanimator); Any ideas? Thx
|