I'm making a CameraDolly class, much like the CameraAnimationController that someone posted, but it has a different API and other features like a sequencer.
Anyway, in all the code examples I've tried (HelloLOD, etc.) there's one big problem. At the end of the move, the camera no longer moves - using the cursor or WASD keys does not move the camera.
So, first question - how do I resolve this problem?
Second question, is the following, taken from HelloLOD, the correct way to use a controller with a CameraNode?
// create the camnode
CameraNode camNode = new CameraNode("camNode",cam);
// create the controller, the spatial that is moved is camNode
CurveController cc = new CurveController(bc, camNode);
// Add the controller to the cam node even thou gh
// the controller has already been told to move the camNode???
camNode.addController(cc);
// attach camNode to the rootNode
rootNode.attachChild(camNode);
// Is this the correct procedure?
Finally, how should I clean up after the controller has been used? For example, in the HelloIntersection tutorial, the custom controller for the bullet has this bit of code in the update(float time) method
if (lifeTime < 0) {
rootNode.detachChild(bullet);
bullet.removeController(this);
but I haven't seen any cleanup like this in other examples.
Thanks!!!