overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
130 stars 47 forks source link

Falling Dynamic entities just stop and never resume if it get out of sight. #895

Open AleziaKurdis opened 3 months ago

AleziaKurdis commented 3 months ago

Falling Dynamic entities just stop and never resume if it get out of sight.

SilverfishVR commented 3 months ago

To me it does not seem like it stops when out of view, but rather when out of range of any "master" user. I worked on a thing a while ago and (surprisingly) , Physics worked as I hoped.

Test: Calling a script on the center barrel enable physics on it (with gravity) and add X velocity to make it shoot up into the air. The nearby barrels follow in sympathy. Here I look at it: https://github.com/overte-org/overte/assets/53531160/a134bf77-8e9e-4b4a-b7b6-092d74319ff5 Looking away: https://github.com/overte-org/overte/assets/53531160/9a01cbb2-9faa-4885-a595-fe0e6d3ebb30

The particle effect pauses when out of view but that is by design, not a bug, the physics continue even when particle pauses. Physics definitely stops when out of range of any physics "master", does that depend on the view frustum of avatars in range? At what range does physics stop?