Class OnControllerColliderHit
Called when the controller hits a collider while performing a move.
Inheritance
EventHandlerUnit<ControllerColliderHit>
GameObjectEventUnit<ControllerColliderHit>
OnControllerColliderHit
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Events/Physics")]
[TypeIcon(typeof(CharacterController))]
public sealed class OnControllerColliderHit : GameObjectEventUnit<ControllerColliderHit>, ISerializationCallbackReceiver, IEventHandlerUnit, IEventUnit, IBehaviourUnit, IUnit, IGraphElementWithDebugData, IBehaviourGraphElement, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, IGraphEventHandler<ControllerColliderHit>
Properties
collider
The collider that was hit by the controller.
Declaration
[DoNotSerialize]
public ValueOutput collider { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
controller
The controller that hit the collider.
Declaration
[DoNotSerialize]
public ValueOutput controller { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
data
The impact point in world space.
Declaration
[DoNotSerialize]
public ValueOutput data { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
eventProxyType
Declaration
public override Type eventProxyType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Ludiq.Bolt.GameObjectEventUnit<ControllerColliderHit>.eventProxyType
hookID
Declaration
public override EventHookID hookID { get; }
Property Value
Type | Description |
---|---|
EventHookID |
Overrides
Ludiq.Bolt.EventHandlerUnit<ControllerColliderHit>.hookID
moveDirection
The direction the CharacterController was moving in when the collision occured.
Declaration
[DoNotSerialize]
public ValueOutput moveDirection { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
moveLength
How far the character has travelled until it hit the collider.
Declaration
[DoNotSerialize]
public ValueOutput moveLength { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
normal
The normal of the surface we collided with in world space.
Declaration
[DoNotSerialize]
public ValueOutput normal { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
point
The impact point in world space.
Declaration
[DoNotSerialize]
public ValueOutput point { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
AssignArguments(Flow, ControllerColliderHit)
Declaration
protected override void AssignArguments(Flow flow, ControllerColliderHit hitData)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
ControllerColliderHit | hitData |
Overrides
Ludiq.Bolt.EventHandlerUnit<ControllerColliderHit>.AssignArguments(Ludiq.Bolt.Flow, ControllerColliderHit)
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.GameObjectEventUnit<ControllerColliderHit>.Definition()