Have you checked if there are any objects left out of bounds? It might be a dummy object lost in space that is causing the target to do not work. Have you also tried lowering the stiffness and damping values?
2009/8/6 Albinal <[email protected]> > > Hi, > > I've got a nice SpringCam test working with a few primatives but as > soon as I introduce a collada file into the mix the "spring" doesn't > work the same. The camera still follows the object but all the bounce > etc has changed. It doesn't seem to make much sense to me. Literally > adding a dae to the scene stops the camera from working how it > should... > > view.scene.addChild(CubeOne); // Add cube primitive > view.scene.addChild(FloorPlane); //Add Plane primitive > view.scene.addChild(CharacterDAE); //Add dae > > camera.target = CubeOne; > camera.lookAt(CubeOne.position); > camera.positionOffset = new Number3D(0, 500, -1000); > camera.mass = 100; //Max 200 > camera.damping = 1; //Max 15 > camera.stiffness = 1; //Max 8 > > If I comment out the addChild for the dae then it works ok. > > It still does work with the dae but only if I put the mass to it's max > value and then I don't get the desired result. > > Also, if I make the dae a target of the spring cam then it doesn't > work at all. > > Any ideas?
