Does react-three-rapier
support on-demand rendering?
#305
-
Here’s the docs in Here’s reference to support in Here’s a reference to support with I couldn’t find references in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @jlarmstrongiv, Out of the box, the "demand" frameloop strategy will cause some unexpected behavior, mainly due to the physics stepping function using the delta between frames to calculate physics steps, which will cause physics bodies to move at a faster speed than you might want. So to achieve a complete manual step, you'd need to pause the physics world and utilize the Here's a small example, using |
Beta Was this translation helpful? Give feedback.
Hey @jlarmstrongiv,
Out of the box, the "demand" frameloop strategy will cause some unexpected behavior, mainly due to the physics stepping function using the delta between frames to calculate physics steps, which will cause physics bodies to move at a faster speed than you might want.
So to achieve a complete manual step, you'd need to pause the physics world and utilize the
step
function provided inuseRapier()
.Here's a small example, using
invalidate
andstep()
https://codesandbox.io/s/manual-stepping-demand-frameloop-m429m4