Search Results for

    Show / Hide Table of Contents

    Sphere Collider

    Sphere Collider

    A sphere-shaped collider.

    SphereCollider3D Component

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

    BoxCollider3D

    Properties

    Property Default Description
    Radius 0.5 This property defines the radius of the Sphere 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. In that case, a value of 0.5 lets the SphereCollider3D fit the entity mesh.
    • If the entity doesn't have any meshes, the Radius value is used as scene units. In that case, a value of 2 will create a Sphere Collider with a radius of 2 units and a diameter of 4 units.
    Offset 0,0,0 Offsets the collider relative 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 doesn't have any 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 the performance and reliability of collision detection.
    In this article
    Back to top
    Generated by DocFX