Show / Hide Table of Contents

    Class Collider4

    Base class for all collider in Engine4

    public abstract class Collider4 : MonoBehaviour4, INeedTransform4Scale
    Namespace Engine4.Physics
    Implements INeedTransform4Scale
    Inheritance
    System.Object
    MonoBehaviour4
    Collider4
    BoxCollider4
    CapsuleCollider4
    SphereCollider4
    Remarks

    Unlike Unity, all colliders must have a rigidbody in the same gameobject or its parent. Otherwise, a static rigidbody is automatically generated when the game start.

    Constructors

    Collider4()

    protected Collider4()

    Properties

    callback

    Register collision callback to this shape

    public CollisionCallback callback { get; set; }

    material

    Physics material used during simulation

    public PhysicsMaterial4 material { get; set; }

    sensor

    Determine if this collider ignores collision impacts (aka. trigger collider)

    public bool sensor { get; set; }

    Implements

    INeedTransform4Scale
    ▲ Copyright © 2017 Wello Soft