Replies: 4 comments
-
You might want fixed time steps with interpolation. This is a good post on the topic: https://gafferongames.com/post/fix_your_timestep/ |
Beta Was this translation helpful? Give feedback.
-
A good reference for doing this with the js lib could be the It's a react library but the approach isn't specific to react. If you've got more questions specific to the js library though, probably best to create a discussion on the rapier.js GitHub repo, or post some questions in the discord. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, see timestep parameter in world |
Beta Was this translation helpful? Give feedback.
-
Yep you can change the timestep each frame (variable time stepping), which is good for many use cases, but has tradeoffs with determinism. |
Beta Was this translation helpful? Give feedback.
-
For example, apply a force to the ball to make it roll. Run it at 60fps and 144fps. 144fps takes a lot less time than 60fps. js version
Beta Was this translation helpful? Give feedback.
All reactions