View on GitHub

ezEngine Documentation

The documentation for ezEngine

PhysX Convex Shape Component

The PhysX convex shape component adds a convex mesh as a shape to the PhysX actor that is attached to the closest parent node.

Convex Mesh

You can attach this component to the same node where the actor component is attached, or you can create a child object to attach it to, which allows you to position the shape relative to the actor.

Convex mesh shapes are the least efficient shape to handle for the physics engine, but it is also the only shape that allows you to define your own (convex) collision geometry. For many kind of objects this is necessary, for example for cylindrical objects.

The convex shape component references a convex collision mesh, which you need to create first.

Note that the editor doesn’t visualize convex shape components in any way. The image above was taken by using a collision mesh visualizer component.

Component Properties

See Also