Class PhysicsColliderActor
A base class for all physical collider actors.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public abstract class PhysicsColliderActor : Actor, ISerializable
Constructors
PhysicsColliderActor()
Initializes a new instance of the PhysicsColliderActor.
Declaration
protected PhysicsColliderActor()
Properties
AttachedRigidBody
Gets the attached rigid body.
Declaration
[Unmanaged]
public RigidBody AttachedRigidBody { get; }
Property Value
RigidBody
|
Methods
OnCollisionEnter(Collision)
Called when a collision start gets registered for this collider (it collides with something).
Declaration
[Unmanaged]
public virtual void OnCollisionEnter(Collision c)
Parameters
Collision
c
The collision info. |
OnCollisionExit(Collision)
Called when a collision end gets registered for this collider (it ends colliding with something).
Declaration
[Unmanaged]
public virtual void OnCollisionExit(Collision c)
Parameters
Collision
c
The collision info. |
OnTriggerEnter(PhysicsColliderActor)
Called when a trigger touching start gets registered for this collider (the other collider enters it and triggers the event).
Declaration
[Unmanaged]
public virtual void OnTriggerEnter(PhysicsColliderActor c)
Parameters
PhysicsColliderActor
c
The other collider. |
OnTriggerExit(PhysicsColliderActor)
Called when a trigger touching end gets registered for this collider (the other collider enters it and triggers the event).
Declaration
[Unmanaged]
public virtual void OnTriggerExit(PhysicsColliderActor c)
Parameters
PhysicsColliderActor
c
The other collider. |
Events
CollisionEnter
Occurs when a collision start gets registered for this collider (it collides with something).
Declaration
[Unmanaged]
public event Action<Collision> CollisionEnter
Event Type
System.Action<Collision>
|
CollisionExit
Occurs when a collision end gets registered for this collider (it ends colliding with something).
Declaration
[Unmanaged]
public event Action<Collision> CollisionExit
Event Type
System.Action<Collision>
|
TriggerEnter
Occurs when a trigger touching start gets registered for this collider (the other collider enters it and triggers the event).
Declaration
[Unmanaged]
public event Action<PhysicsColliderActor> TriggerEnter
Event Type
System.Action<PhysicsColliderActor>
|
TriggerExit
Occurs when a trigger touching end gets registered for this collider (the other collider enters it and triggers the event).
Declaration
[Unmanaged]
public event Action<PhysicsColliderActor> TriggerExit
Event Type
System.Action<PhysicsColliderActor>
|