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

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
OnPostInitiate UpdateDelegate
OnPostUpdate UpdateDelegate
OnPreInitiate UpdateDelegate
OnPreUpdate UpdateDelegate

Защищенные свойства (Protected)

Свойство Тип Описание
firstInitiation bool

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

Метод Описание
ContainsDuplicateBone ( Bone bones ) : Transform

Checks if an array of objects contains any duplicates.

FixTransforms ( ) : void

Fixes all the Transforms used by the solver to their initial state.

GetIKPosition ( ) : Vector3

Gets the %IK position. NOTE: You are welcome to read IKPosition directly, this method is here only to match the Unity's built in %IK API.

GetIKPositionWeight ( ) : float

Gets the %IK position weight. NOTE: You are welcome to read IKPositionWeight directly, this method is here only to match the Unity's built in %IK API.

GetPoint ( Transform transform ) : IKSolver.Point

Gets the point with the specified Transform.

GetPoints ( ) : RootMotion.FinalIK.IKSolver.Point[]

Gets all the points used by the solver.

GetRoot ( ) : Transform

Gets the root Transform.

HierarchyIsValid ( IKSolver bones ) : bool
Initiate ( Transform root ) : void

Initiate the solver with specified root Transform. Use only if this %IKSolver is not a member of an %IK component.

IsValid ( bool log ) : bool

Determines whether this instance is valid or not. If log == true, will log a warning message in case of an invalid solver.

SetIKPosition ( Vector3 position ) : void

Sets the %IK position. NOTE: You are welcome to set IKPosition directly, this method is here only to match the Unity's built in %IK API.

SetIKPositionWeight ( float weight ) : void

Sets the %IK position weight. NOTE: You are welcome to set IKPositionWeight directly, this method is here only to match the Unity's built in %IK API.

StoreDefaultLocalState ( ) : void

Stores the default local state for the bones used by the solver.

Update ( ) : void

Updates the %IK solver. Use only if this %IKSolver is not a member of an %IK component or the %IK component has been disabled and you intend to manually control the updating.

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

Метод Описание
LogWarning ( string message ) : void
OnInitiate ( ) : void
OnUpdate ( ) : void

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

ContainsDuplicateBone() публичный статический Метод

Checks if an array of objects contains any duplicates.
public static ContainsDuplicateBone ( Bone bones ) : Transform
bones Bone
Результат UnityEngine.Transform

FixTransforms() публичный абстрактный Метод

Fixes all the Transforms used by the solver to their initial state.
public abstract FixTransforms ( ) : void
Результат void

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

Gets the %IK position. NOTE: You are welcome to read IKPosition directly, this method is here only to match the Unity's built in %IK API.
public GetIKPosition ( ) : Vector3
Результат UnityEngine.Vector3

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

Gets the %IK position weight. NOTE: You are welcome to read IKPositionWeight directly, this method is here only to match the Unity's built in %IK API.
public GetIKPositionWeight ( ) : float
Результат float

GetPoint() публичный абстрактный Метод

Gets the point with the specified Transform.
public abstract GetPoint ( Transform transform ) : IKSolver.Point
transform UnityEngine.Transform
Результат IKSolver.Point

GetPoints() публичный абстрактный Метод

Gets all the points used by the solver.
public abstract GetPoints ( ) : RootMotion.FinalIK.IKSolver.Point[]
Результат RootMotion.FinalIK.IKSolver.Point[]

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

Gets the root Transform.
public GetRoot ( ) : Transform
Результат UnityEngine.Transform

HierarchyIsValid() публичный статический Метод

public static HierarchyIsValid ( IKSolver bones ) : bool
bones IKSolver
Результат bool

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

Initiate the solver with specified root Transform. Use only if this %IKSolver is not a member of an %IK component.
public Initiate ( Transform root ) : void
root UnityEngine.Transform
Результат void

IsValid() публичный абстрактный Метод

Determines whether this instance is valid or not. If log == true, will log a warning message in case of an invalid solver.
public abstract IsValid ( bool log ) : bool
log bool
Результат bool

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

protected LogWarning ( string message ) : void
message string
Результат void

OnInitiate() защищенный абстрактный Метод

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

OnUpdate() защищенный абстрактный Метод

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

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

Sets the %IK position. NOTE: You are welcome to set IKPosition directly, this method is here only to match the Unity's built in %IK API.
public SetIKPosition ( Vector3 position ) : void
position UnityEngine.Vector3
Результат void

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

Sets the %IK position weight. NOTE: You are welcome to set IKPositionWeight directly, this method is here only to match the Unity's built in %IK API.
public SetIKPositionWeight ( float weight ) : void
weight float
Результат void

StoreDefaultLocalState() публичный абстрактный Метод

Stores the default local state for the bones used by the solver.
public abstract StoreDefaultLocalState ( ) : void
Результат void

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

Updates the %IK solver. Use only if this %IKSolver is not a member of an %IK component or the %IK component has been disabled and you intend to manually control the updating.
public Update ( ) : void
Результат void

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

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

Called after initiating the solver.
public UpdateDelegate OnPostInitiate
Результат UpdateDelegate

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

Called after writing the solved pose
public UpdateDelegate OnPostUpdate
Результат UpdateDelegate

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

Called before initiating the solver.
public UpdateDelegate OnPreInitiate
Результат UpdateDelegate

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

Called before updating.
public UpdateDelegate OnPreUpdate
Результат UpdateDelegate

firstInitiation защищенное свойство

protected bool firstInitiation
Результат bool