Search Results for

    Show / Hide Table of Contents

    Capsule Collider

    Capsule Collider

    A capsule-shaped collider.

    A capsule is a special shape defined by two properties:

    • Radius: The radius of the collider's local width.
    • Height: The total height of the collider.

    Capsule shape

    SphereCollider3D Component

    To use a Sphere Collider in Evergine, you only need to add a SphereCollider3D component to your entity:

    CapsuleCollider3D

    Properties

    Property Default Description
    Radius 0.5 This property defines the radius of the Capsule collider.

    The Radius value can be used in two ways:
    • If the entity has a mesh (with MeshComponent for example), the Radius value is relative to the mesh extents.
    • If the entity has no meshes, the Radius value is used as scene units.
    Height 1 This property defines the total height of the Capsule collider.

    The Height value can be used in two ways:
    • If the entity has a mesh (with MeshComponent for example), the Height value is relative to the mesh height.
    • If the entity has no meshes, the Height value is used as scene units.
    Offset 0,0,0 Offsets the collider with respect to the owner entity.

    The Offset value can be used in two ways:
    • If the entity has a mesh (with MeshComponent for example), the Offset value is relative to the mesh extents.
    • If the entity has no meshes, the Offset value is used as scene units.
    Margin 0.04 The physics engine uses a small collision margin for collision shapes to improve performance and reliability of the collision detection.
    In this article
    Back to top
    Generated by DocFX