Tresjs / rapier

We'll make you love physics again 💚
MIT License
10 stars 0 forks source link

Sleep, awake events #131

Open JaimeTorrealba opened 2 months ago

JaimeTorrealba commented 2 months ago

Description

We need to handle these events or explain in the docs the behavior. Rapier automatically put in sleep object that are slow or stop a short time.

Also, many of the reactive props are setting true (awake) automatically, but that maybe is not for all use cases

Suggested solution

My idea is a new props to handle this, R3F handle this with a function, maybe we need to check that

Alternative

As this is the default behavior for Rapier I wouldn't mess around too much here, but is necessary to explain it, and/or handle it in a better way

Additional context

No response

Validations