C# Класс RootMotion.FinalIK.InteractionSystem

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OnInteractionEvent InteractionEventDelegate
OnInteractionPause InteractionDelegate
OnInteractionPickUp InteractionDelegate
OnInteractionResume InteractionDelegate
OnInteractionStart InteractionDelegate
OnInteractionStop InteractionDelegate
raycastHit UnityEngine.RaycastHit

Открытые методы

Метод Описание
GetClosestTriggerIndex ( ) : int

Returns the InteractionTrigger that is in range and closest to the character.

GetInteractionObject ( FullBodyBipedEffector effectorType ) : RootMotion.FinalIK.InteractionObject

Gets the current interaction object of an effector.

GetMinActiveProgress ( ) : float

Gets the minimum progress of any active interaction

GetProgress ( FullBodyBipedEffector effectorType ) : float

Gets the progress of any interaction with the specified effector.

GetTriggerRange ( int index ) : InteractionTrigger.Range

Return the current most appropriate range of an InteractionTrigger listed in triggersInRange.

IsInInteraction ( FullBodyBipedEffector effectorType ) : bool

Determines whether this effector is interaction and not paused

IsInSync ( ) : bool

Returns true if either all effectors in interaction are paused or none is.

IsPaused ( ) : bool

Returns true if any of the effectors is paused

IsPaused ( FullBodyBipedEffector effectorType ) : bool

Determines whether this effector is paused

LateUpdate ( ) : void
OnDestroy ( ) : void
OnDrawGizmosSelected ( ) : void
OnTriggerEnter ( Collider c ) : void
OnTriggerExit ( Collider c ) : void
PauseAll ( ) : void

Pauses all the interaction effectors.

PauseInteraction ( FullBodyBipedEffector effectorType ) : bool

Pauses the interaction of an effector.

ResumeAll ( ) : void

Resumes all the paused interaction effectors.

ResumeInteraction ( FullBodyBipedEffector effectorType ) : bool

Resumes the paused interaction of an effector.

StartInteraction ( FullBodyBipedEffector effectorType, RootMotion.FinalIK.InteractionObject interactionObject, bool interrupt ) : bool

Starts the interaction between an effector and an interaction object.

StopAll ( ) : void

Stops all interactions.

StopInteraction ( FullBodyBipedEffector effectorType ) : bool

Stops the interaction of an effector.

TriggerEffectorsReady ( int index ) : bool

Returns true if all effectors of a trigger are either not in interaction or paused

TriggerInteraction ( int index, bool interrupt ) : bool

Triggers all interactions of an InteractionTrigger. Returns false if unsuccessful (maybe out of range).

Update ( ) : void

Защищенные методы

Метод Описание
Start ( ) : void

Приватные методы

Метод Описание
ContactIsInRange ( int index, int &bestRangeIndex ) : bool
IsValid ( bool log ) : bool
LookAtInteraction ( FullBodyBipedEffector effector, RootMotion.FinalIK.InteractionObject interactionObject ) : void
OnPostFBBIK ( ) : void
OnPreFBBIK ( ) : void
OpenScriptReference ( ) : void
OpenUserManual ( ) : void
Raycasting ( ) : void
TriggerIndexIsValid ( int index ) : bool
UpdateTriggerEventBroadcasting ( ) : void

Описание методов

GetClosestTriggerIndex() публичный Метод

Returns the InteractionTrigger that is in range and closest to the character.
public GetClosestTriggerIndex ( ) : int
Результат int

GetInteractionObject() публичный Метод

Gets the current interaction object of an effector.
public GetInteractionObject ( FullBodyBipedEffector effectorType ) : RootMotion.FinalIK.InteractionObject
effectorType FullBodyBipedEffector
Результат RootMotion.FinalIK.InteractionObject

GetMinActiveProgress() публичный Метод

Gets the minimum progress of any active interaction
public GetMinActiveProgress ( ) : float
Результат float

GetProgress() публичный Метод

Gets the progress of any interaction with the specified effector.
public GetProgress ( FullBodyBipedEffector effectorType ) : float
effectorType FullBodyBipedEffector
Результат float

GetTriggerRange() публичный Метод

Return the current most appropriate range of an InteractionTrigger listed in triggersInRange.
public GetTriggerRange ( int index ) : InteractionTrigger.Range
index int
Результат InteractionTrigger.Range

IsInInteraction() публичный Метод

Determines whether this effector is interaction and not paused
public IsInInteraction ( FullBodyBipedEffector effectorType ) : bool
effectorType FullBodyBipedEffector
Результат bool

IsInSync() публичный Метод

Returns true if either all effectors in interaction are paused or none is.
public IsInSync ( ) : bool
Результат bool

IsPaused() публичный Метод

Returns true if any of the effectors is paused
public IsPaused ( ) : bool
Результат bool

IsPaused() публичный Метод

Determines whether this effector is paused
public IsPaused ( FullBodyBipedEffector effectorType ) : bool
effectorType FullBodyBipedEffector
Результат bool

LateUpdate() публичный Метод

public LateUpdate ( ) : void
Результат void

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnDrawGizmosSelected() публичный Метод

public OnDrawGizmosSelected ( ) : void
Результат void

OnTriggerEnter() публичный Метод

public OnTriggerEnter ( Collider c ) : void
c UnityEngine.Collider
Результат void

OnTriggerExit() публичный Метод

public OnTriggerExit ( Collider c ) : void
c UnityEngine.Collider
Результат void

PauseAll() публичный Метод

Pauses all the interaction effectors.
public PauseAll ( ) : void
Результат void

PauseInteraction() публичный Метод

Pauses the interaction of an effector.
public PauseInteraction ( FullBodyBipedEffector effectorType ) : bool
effectorType FullBodyBipedEffector
Результат bool

ResumeAll() публичный Метод

Resumes all the paused interaction effectors.
public ResumeAll ( ) : void
Результат void

ResumeInteraction() публичный Метод

Resumes the paused interaction of an effector.
public ResumeInteraction ( FullBodyBipedEffector effectorType ) : bool
effectorType FullBodyBipedEffector
Результат bool

Start() защищенный Метод

protected Start ( ) : void
Результат void

StartInteraction() публичный Метод

Starts the interaction between an effector and an interaction object.
public StartInteraction ( FullBodyBipedEffector effectorType, RootMotion.FinalIK.InteractionObject interactionObject, bool interrupt ) : bool
effectorType FullBodyBipedEffector
interactionObject RootMotion.FinalIK.InteractionObject
interrupt bool
Результат bool

StopAll() публичный Метод

Stops all interactions.
public StopAll ( ) : void
Результат void

StopInteraction() публичный Метод

Stops the interaction of an effector.
public StopInteraction ( FullBodyBipedEffector effectorType ) : bool
effectorType FullBodyBipedEffector
Результат bool

TriggerEffectorsReady() публичный Метод

Returns true if all effectors of a trigger are either not in interaction or paused
public TriggerEffectorsReady ( int index ) : bool
index int
Результат bool

TriggerInteraction() публичный Метод

Triggers all interactions of an InteractionTrigger. Returns false if unsuccessful (maybe out of range).
public TriggerInteraction ( int index, bool interrupt ) : bool
index int
interrupt bool
Результат bool

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

OnInteractionEvent публичное свойство

Called when an interaction event occurs.
public InteractionEventDelegate OnInteractionEvent
Результат InteractionEventDelegate

OnInteractionPause публичное свойство

Called when an Interaction has been paused
public InteractionDelegate OnInteractionPause
Результат InteractionDelegate

OnInteractionPickUp публичное свойство

Called when an InteractionObject has been picked up.
public InteractionDelegate OnInteractionPickUp
Результат InteractionDelegate

OnInteractionResume публичное свойство

Called when a paused Interaction has been resumed
public InteractionDelegate OnInteractionResume
Результат InteractionDelegate

OnInteractionStart публичное свойство

Called when an InteractionEvent has been started
public InteractionDelegate OnInteractionStart
Результат InteractionDelegate

OnInteractionStop публичное свойство

Called when an Interaction has been stopped
public InteractionDelegate OnInteractionStop
Результат InteractionDelegate

raycastHit публичное свойство

Gets the RaycastHit from trigger seeking.
public RaycastHit,UnityEngine raycastHit
Результат UnityEngine.RaycastHit