Search Results for

    Show / Hide Table of Contents

    Box Collider

    Box Collider

    A box-shaped collider.

    BoxCollider3D Component

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

    BoxCollider3D

    Properties

    Property Default Description
    Size 1,1,1 This property defines the size of the box collider.

    The Size value can be used in two ways:
    • If the entity has a mesh (with MeshComponent for example), the Size value is relative to the mesh extents. In that case, a value of 1,1,1 lets the BoxCollider3D fit the entity mesh.
    • If the entity has no meshes, the Size value is used as scene units. In that case, a value of 2,2,2 will create a box collider of 2x2x2 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.
    RotationOffset 0,0,0 Applies a rotation offset to the collider with respect to the owner entity.

    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