C# Class QualisysRealTime.Unity.Skeleton.IKApplier

Class for predicting missing joints position from a skeleton
ファイルを表示 Open project: qualisys/Qualisys-Unity-SDK Class Usage Examples

Public Properties

Property Type Description
Interpolation bool

Public Methods

Method Description
ApplyIK ( BipedSkeleton &skeleton ) : void

Checks for empty position in the skeleton, fills the from the last skeleton. Root and all of roots children MUST have set possition!

IKApplier ( BipedSkeleton firstSkel ) : System.Collections

Private Methods

Method Description
ConstraintsBeforeReturn ( TreeNode bone, bool rotational = true ) : bool

Checks wheter all bones is in a legal rotation and position and fixing there rotaion is that is the case

CopyFromLast ( Bone curr, Bone last ) : void

Copy the position and orientation from one bone to another

FK ( TreeNode bvn, Quaternion rotation ) : void

Rotate the first joint, and move the rest according to a Quaternion

JerkingTest ( TreeNode bones, bool pos = true, bool rot = true ) : bool

Test wheter a bone has moved unatural much since last frame

MissingJoint ( TreeNode missingJoint ) : void

If a joints is missing from the skeletontree, fill the joints with the previus frames joints and solve with ik if a joint is found, or return the previus frames joint pos offseted the new position

TraversFunc ( TreeNode bone ) : void

The function applied to each bone in the skeleton

Method Details

ApplyIK() public method

Checks for empty position in the skeleton, fills the from the last skeleton. Root and all of roots children MUST have set possition!
public ApplyIK ( BipedSkeleton &skeleton ) : void
skeleton BipedSkeleton The skeleton to be checked
return void

IKApplier() public method

public IKApplier ( BipedSkeleton firstSkel ) : System.Collections
firstSkel BipedSkeleton
return System.Collections

Property Details

Interpolation public_oe property

public bool Interpolation
return bool