Class Collider4
Base class for all collider in Engine4
public abstract class Collider4 : MonoBehaviour4, INeedTransform4Scale
Namespace Engine4.Physics
Implements INeedTransform4Scale
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; }