C# Class RootMotion.FinalIK.IKSolver

Afficher le fichier Open project: Alx666/ProjectPhoenix Class Usage Examples

Méthodes publiques

Свойство Type Description
OnPostInitiate UpdateDelegate
OnPostUpdate UpdateDelegate
OnPreInitiate UpdateDelegate
OnPreUpdate UpdateDelegate

Protected Properties

Свойство Type Description
firstInitiation bool

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
LogWarning ( string message ) : void
OnInitiate ( ) : void
OnUpdate ( ) : void

Method Details

ContainsDuplicateBone() public static méthode

Checks if an array of objects contains any duplicates.
public static ContainsDuplicateBone ( Bone bones ) : Transform
bones Bone
Résultat UnityEngine.Transform

FixTransforms() public abstract méthode

Fixes all the Transforms used by the solver to their initial state.
public abstract FixTransforms ( ) : void
Résultat void

GetIKPosition() public méthode

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
Résultat UnityEngine.Vector3

GetIKPositionWeight() public méthode

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
Résultat float

GetPoint() public abstract méthode

Gets the point with the specified Transform.
public abstract GetPoint ( Transform transform ) : IKSolver.Point
transform UnityEngine.Transform
Résultat IKSolver.Point

GetPoints() public abstract méthode

Gets all the points used by the solver.
public abstract GetPoints ( ) : RootMotion.FinalIK.IKSolver.Point[]
Résultat RootMotion.FinalIK.IKSolver.Point[]

GetRoot() public méthode

Gets the root Transform.
public GetRoot ( ) : Transform
Résultat UnityEngine.Transform

HierarchyIsValid() public static méthode

public static HierarchyIsValid ( IKSolver bones ) : bool
bones IKSolver
Résultat bool

Initiate() public méthode

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
Résultat void

IsValid() public abstract méthode

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
Résultat bool

LogWarning() protected méthode

protected LogWarning ( string message ) : void
message string
Résultat void

OnInitiate() protected abstract méthode

protected abstract OnInitiate ( ) : void
Résultat void

OnUpdate() protected abstract méthode

protected abstract OnUpdate ( ) : void
Résultat void

SetIKPosition() public méthode

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
Résultat void

SetIKPositionWeight() public méthode

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
Résultat void

StoreDefaultLocalState() public abstract méthode

Stores the default local state for the bones used by the solver.
public abstract StoreDefaultLocalState ( ) : void
Résultat void

Update() public méthode

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
Résultat void

Property Details

OnPostInitiate public_oe property

Called after initiating the solver.
public UpdateDelegate OnPostInitiate
Résultat UpdateDelegate

OnPostUpdate public_oe property

Called after writing the solved pose
public UpdateDelegate OnPostUpdate
Résultat UpdateDelegate

OnPreInitiate public_oe property

Called before initiating the solver.
public UpdateDelegate OnPreInitiate
Résultat UpdateDelegate

OnPreUpdate public_oe property

Called before updating.
public UpdateDelegate OnPreUpdate
Résultat UpdateDelegate

firstInitiation protected_oe property

protected bool firstInitiation
Résultat bool