Swampy222
Swampy222

Reputation: 21

Using a mesh collider in Unity with Bullet Physics

When using this ramp as a collider with Convex Hull the ball rolls on the edge like this:

Ramp and ball

Ramp and ball

Bullet physics settings

Bullet physics settings

Blender

Blender

Thanks!

/T

Upvotes: 0

Views: 542

Answers (2)

Swampy222
Swampy222

Reputation: 21

Thanks! The creator of the plugin gave this solution to the shape:

  • approximate the shape with multiple simple colliders (boxes)
  • use BVHTriangleMeshShape if it is static
  • use the GImpactTriangleMeshShape if it is dynamic

Upvotes: 0

joel64
joel64

Reputation: 387

Because that is not a convex shape.

Upvotes: 2

Related Questions