Generate Custom Mesh Collider dynamically + options for Rigid body

Can you try with a MeshCollider ?

by user 224464722878005248

same result
image.png

image.png

If you call it in onEnable make sure the collider is above your component that does access it - or access it in start - because the collider must first be enabled / register itself to the physics system which it does in onEnable

Okay I tried to access it in start and now it’s working

by user 224464722878005248

How did you do it before?

onEnable or in a custom function to initialize my objects from my component

by user 224464722878005248

My colliders are generated dynamically, it’s maybe why

by user 224464722878005248

Ah ok I see