Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Game programming

Slowing down objects using dynamics

All about the StoneScript

Slowing down objects using dynamics

Postby 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?
User avatar
carpo
Fresh Boarder
Fresh Boarder
 
Posts: 19

Re: Slowing down objects using dynamics

Postby 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
Expert Boarder
 
Posts: 124

Re: Slowing down objects using dynamics

Postby NiCoX » 10 Oct 2011, 17:09

User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: Slowing down objects using dynamics

Postby carpo » 10 Oct 2011, 23:17

Thanks for the ideas guys, I'll give them a go and see how it looks.
User avatar
carpo
Fresh Boarder
Fresh Boarder
 
Posts: 19


Return to Game programming