pmndrs / react-three-rapier

🤺 Rapier physics in React
https://react-three-rapier.pmnd.rs
MIT License
1.07k stars 59 forks source link

How i can load RigidBody in order #521

Closed huyprowow closed 1 year ago

huyprowow commented 1 year ago

Do you know how I can load RigidBody in order? Currently, when I load a 3D map model and character (gltf), the rigid body of the map is loaded later => the body's rigid body gets stuck on the model, then they collide and my model is thrown away :v (The character is pulled down by gravity in Physic)

isaac-mason commented 1 year ago

I work around this by pausing physics while assets are loading. This isn't the most robust method, but works for a simple scene.

See:

isaac-mason commented 1 year ago

Converting this to a discussion that we can keep around, curious to hear what others are doing.