StressLevelZero / MarrowSDK-Legacy

MIT License
288 stars 39 forks source link

Non-convex mesh colliders on spawnables simply don't work #63

Closed technobaboo closed 1 year ago

technobaboo commented 1 year ago

In-game, mesh colliders without the convex property simply fall right through the floor... while mesh colliders aren't optimal they are necessary for ring shapes.

In editor, mesh colliders do not contribute to collider bounds unless they are convex. I don't see why this would be the case unless mesh colliders' bounds in GenerateColliderBounds are none?

Greased-Scotsman commented 1 year ago

Would need more info to reproduce this. Is this in a custom level, any vanilla BL level, etc.? Can you toss a screenshot of your spawnable inspector and a screenshot of a surface (if a custom level) through which it falls?

camobiwon commented 1 year ago

Unity / PhysX does not support concave mesh colliders on rigidbodies. You will have to create these out of primitive and / or segmented convex mesh colliders.