Hi Albinal, Took some time to check to see where things were since I've made SpringCam. Seems there was an API change of where the spring cam was hooked (getter view now function update).
I've updated the original demo and the cam ; could you try this cam and see if that helps? Normally having a DAE in the scene should not affect the cam behavior, there are no links between the two! Grab the files here: http://agit8.turbulent.ca/source/away3d/SpringCam-r1505.as http://agit8.turbulent.ca/source/away3d/springcamdemo-r1505.zip Note this is tested against trunk away3d r1505. hope this helps! -b On Aug 6, 9:53 am, Albinal <[email protected]> wrote: > Maybe there's some other problem going on here. I've looked at the > SpringCam.as and the default values are Mass:40, Damping:4 and > Stiffness:1. However, these don't seem to have much impact... I need > to change these to Mass:100, Damping:1 and Stiffness:1 to actually see > anything worthwhile. ??? > > On Aug 6, 2:41 pm, Albinal <[email protected]> wrote: > > > > > Thanks for your help! > > > There's definitely no stray objects as I'm only testing with a cube, > > plane and simple dae. I have the damping and stiffness both set to 1 > > so I can't go any lower. Any other ideas? > > > On Aug 6, 2:02 pm, Cauê Waneck <[email protected]> wrote: > > > > 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?
