Replies: 7 comments
-
Related: #522 |
Beta Was this translation helpful? Give feedback.
-
Thank you @isaac-mason , I had seen that link, tried to implement it as well, but the same keeps happening at random. |
Beta Was this translation helpful? Give feedback.
-
@pierroo if you can create a minimal codesandbox I'd be happy to take a look 🙂 it's hard for me to suggest anything concretely with just the excerpt there not knowing how your asset loading is set up. The fundamental though may be that your ground may be added later than your character. This is generally either handled by not progressing physics until the desired state is achieved, or something similar. |
Beta Was this translation helpful? Give feedback.
-
Yes I completely understand without a link it might be hard to help. both my ground and my character are added at the same time as the physics parent. However, I then removed all complex meshes, and went to my blender to add some super basic planes and cubes to handle every single environment collider. thank you for being willing to help! |
Beta Was this translation helpful? Give feedback.
-
A few things you could look at:
|
Beta Was this translation helpful? Give feedback.
-
Yes I am indeed using a trimesh; can you clarify what is "ccd" on the other hand? :/ And as you mentioned trimesh is complex, I created a fake plane floor specifically for my "spawn" point, and it did the trick (not a fix then, more of a hack for now) |
Beta Was this translation helpful? Give feedback.
-
See here for the ccd (continuous collision detection) RigidBody component prop: https://pmndrs.github.io/react-three-rapier/interfaces/RigidBodyProps.html#ccd |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There is this random bug bothering me for months:
I am using r3f and rapier.
I have this as my Experience component
I manage my collider from the WholeScene and Player component, so I have colliders={false} on my main Physics parent.
At random during launch (refreshing the page, sometimes it works, sometimes it does not), my player will fall through my scene and get stuck in it.
I purposedly give it a high y position, so that when it loads during its fall I hope the Physics has enough time to compute and "welcome" my player.
but it feels cheap / like a hack.
is there a way to make sure my scene is ready when physics starts? (if that's the issue)
or to know when physics is done so I can load my player?
I have tried everything and remains lost.
Beta Was this translation helpful? Give feedback.
All reactions