-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variable timestep and car physics #12
Comments
How you set the time step? it's must small enough make the simulation precise. |
I use this code: where: maxSubStepsPhysics:int = 3 I'm using Away3D 4.1 and AwayPhysics v1.0 alpha (13-11-2012) |
not sure what cause this, you can try to adjust some property of AWPWheelInfo, like damping, friction etc. |
The problem is not on that values, is the use of variable step. If I use fixed step, the problem doesn't appear: _physicsWorld.step(_timeStep, 1, _timeStep); where: You can see it in this demo: |
you find solution in this thread in AwayPhysics.c On Wed, Mar 13, 2013 at 1:16 PM, louis87 [email protected] wrote:
LoTh - Freelance flash as3 / 3D |
ok, thanks! |
There is a bug that make the wheels and the car body make strange movements when use a variable delta time.
Here is a demo: (takes a few seconds to load)
https://dl.dropbox.com/u/28132609/demo_car_away/index.html
Use arrows to control the car. You can see the bug when the car is turning.
Best regards
The text was updated successfully, but these errors were encountered: