Struct StatefulKinematicCharacterHit
A stateful version of character hits, which includes the hit state (enter, exit, stay)
Inherited Members
Namespace: Unity.CharacterController
Syntax
[Serializable]
[InternalBufferCapacity(0)]
public struct StatefulKinematicCharacterHit : IBufferElementData
Constructors
StatefulKinematicCharacterHit(KinematicCharacterHit)
Constructs a stateful character hit from a character hit
Declaration
public StatefulKinematicCharacterHit(KinematicCharacterHit characterHit)
Parameters
Type | Name | Description |
---|---|---|
KinematicCharacterHit | characterHit | The character hit |
Fields
Hit
The character hit
Declaration
public KinematicCharacterHit Hit
Field Value
Type | Description |
---|---|
KinematicCharacterHit |
State
State of the hit (enter/exit/stay)
Declaration
public CharacterHitState State
Field Value
Type | Description |
---|---|
CharacterHitState |