Class OnControllerColliderHit
Called when the controller hits a collider while performing a move.
Inheritance
OnControllerColliderHit
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events/Physics")]
[TypeIcon(typeof(CharacterController))]
public sealed class OnControllerColliderHit : GameObjectEventUnit<ControllerColliderHit>, IGraphElementWithData, IGraphEventHandler<ControllerColliderHit>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventListener
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 |
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.ControllerColliderHit>.hookName
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.ControllerColliderHit>.MessageListenerType
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
Unity.VisualScripting.EventUnit<UnityEngine.ControllerColliderHit>.AssignArguments(Unity.VisualScripting.Flow, UnityEngine.ControllerColliderHit)
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.ControllerColliderHit>.Definition()