C# Class RootMotion.FinalIK.IKMappingLimb

Inheritance: RootMotion.FinalIK.IKMapping
显示文件 Open project: Alx666/ProjectPhoenix Class Usage Examples

Public Properties

Property Type Description
bone1 UnityEngine.Transform
bone2 UnityEngine.Transform
bone3 UnityEngine.Transform
parentBone UnityEngine.Transform

Public Methods

Method Description
FixTransforms ( ) : void
GetBoneMap ( BoneMapType boneMap ) : BoneMap

Gets the bone map of the specified bone.

IKMappingLimb ( ) : UnityEngine
IKMappingLimb ( Transform bone1, Transform bone2, Transform bone3, Transform parentBone = null ) : UnityEngine
IsValid ( IKSolver solver, Warning logger = null ) : bool

Determines whether this IKMappingLimb is valid

ReadPose ( ) : void
SetBones ( Transform bone1, Transform bone2, Transform bone3, Transform parentBone = null ) : void
SetLimbOrientation ( Vector3 upper, Vector3 lower ) : void

Makes the limb mapped to the specific local directions of the bones. Added in 0.3

StoreDefaultLocalState ( ) : void
WritePose ( bool fullBody ) : void

Protected Methods

Method Description
OnInitiate ( ) : void

Method Details

FixTransforms() public method

public FixTransforms ( ) : void
return void

GetBoneMap() public method

Gets the bone map of the specified bone.
public GetBoneMap ( BoneMapType boneMap ) : BoneMap
boneMap BoneMapType
return BoneMap

IKMappingLimb() public method

public IKMappingLimb ( ) : UnityEngine
return UnityEngine

IKMappingLimb() public method

public IKMappingLimb ( Transform bone1, Transform bone2, Transform bone3, Transform parentBone = null ) : UnityEngine
bone1 UnityEngine.Transform
bone2 UnityEngine.Transform
bone3 UnityEngine.Transform
parentBone UnityEngine.Transform
return UnityEngine

IsValid() public method

Determines whether this IKMappingLimb is valid
public IsValid ( IKSolver solver, Warning logger = null ) : bool
solver IKSolver
logger Warning
return bool

OnInitiate() protected method

protected OnInitiate ( ) : void
return void

ReadPose() public method

public ReadPose ( ) : void
return void

SetBones() public method

public SetBones ( Transform bone1, Transform bone2, Transform bone3, Transform parentBone = null ) : void
bone1 UnityEngine.Transform
bone2 UnityEngine.Transform
bone3 UnityEngine.Transform
parentBone UnityEngine.Transform
return void

SetLimbOrientation() public method

Makes the limb mapped to the specific local directions of the bones. Added in 0.3
public SetLimbOrientation ( Vector3 upper, Vector3 lower ) : void
upper UnityEngine.Vector3
lower UnityEngine.Vector3
return void

StoreDefaultLocalState() public method

public StoreDefaultLocalState ( ) : void
return void

WritePose() public method

public WritePose ( bool fullBody ) : void
fullBody bool
return void

Property Details

bone1 public_oe property

The first bone (upper arm or thigh).
public Transform,UnityEngine bone1
return UnityEngine.Transform

bone2 public_oe property

The second bone (forearm or calf).
public Transform,UnityEngine bone2
return UnityEngine.Transform

bone3 public_oe property

The third bone (hand or foot).
public Transform,UnityEngine bone3
return UnityEngine.Transform

parentBone public_oe property

The optional parent bone (clavicle).
public Transform,UnityEngine parentBone
return UnityEngine.Transform