ShiVa3D
Slowing down objects using dynamics
All about the StoneScriptSlowing down objects using dynamics
by carpo » 09 Oct 2011, 12:47
Hi,
I have some models that I'm moving with dynamics.addLinearImpulse and dynamics.addForce on the onEnterFrame event. I'm happy with the movement of these objects, and the path they take through the scene. However, I want to slow them down or speed them up, but have them take the exact same path through the scene. I used application.setFrameTimeFactor and this works, but it also slows down the particle effects on the objects, which I don't want to happen.
Anyone have suggestions on the best way to achieve this?
I have some models that I'm moving with dynamics.addLinearImpulse and dynamics.addForce on the onEnterFrame event. I'm happy with the movement of these objects, and the path they take through the scene. However, I want to slow them down or speed them up, but have them take the exact same path through the scene. I used application.setFrameTimeFactor and this works, but it also slows down the particle effects on the objects, which I don't want to happen.
Anyone have suggestions on the best way to achieve this?
-

carpo - Fresh Boarder

- Posts: 19
Re: Slowing down objects using dynamics
by todd » 10 Oct 2011, 16:58
You could try a force in the opposite direction or maybe changing the maximum speed of the dynamic object to varying levels.
- todd
- Expert Boarder

- Posts: 121
Re: Slowing down objects using dynamics
by NiCoX » 10 Oct 2011, 17:09
Hi,
You can also apply damping:
http://www.stonetrip.com/developer/doc/api/dynamics-setLinearDampingEx
You can also apply damping:
http://www.stonetrip.com/developer/doc/api/dynamics-setLinearDampingEx
-

NiCoX - Platinum Boarder

- Posts: 5626
- Location: France
Re: Slowing down objects using dynamics
by carpo » 10 Oct 2011, 23:17
Thanks for the ideas guys, I'll give them a go and see how it looks.
-

carpo - Fresh Boarder

- Posts: 19
4 posts
• Page 1 of 1