Space Engineers
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
VRageRender.Animations.MyAnimationInverseKinematics Class Reference

Class providing various IK solutions. Feet IK is More...

Public Member Functions

void SolveFeet (bool enabled, MyCharacterBone[] characterBones, bool allowMovingWithBody)
 Solve feet positions. More...
 
void ClearCharacterOffsetFilteringSamples ()
 
void RegisterFootBone (string boneName, int boneChainLength, bool alignBoneWithTerrain)
 Register foot IK bone chain. More...
 
void RegisterIgnoredBone (string boneName)
 Register bone ignored by IK. IK will not move it. More...
 
void Clear ()
 

Static Public Member Functions

static bool SolveIkTwoBones (MyCharacterBone[] characterBones, MyAnimationIkChainExt ikChain, ref Vector3 finalPosition, ref Vector3 finalNormal, bool fromBindPose)
 Solve IK for chain of two bones + change rotation of end bone. More...
 
static bool SolveIkCcd (MyCharacterBone[] characterBones, int boneIndex, int chainLength, ref Vector3D finalPosition)
 

Static Public Attributes

static MatrixD DebugTransform
 

Properties

ListReader< MyAnimationIkChainExtFeet [get]
 List of all feet bones. More...
 
IMyTerrainHeightProvider TerrainHeightProvider [get, set]
 Interface providing results from raycasts. More...
 
float RootBoneVerticalOffset [get]
 

Detailed Description

Class providing various IK solutions. Feet IK is

Definition at line 79 of file MyAnimationInverseKinematics.cs.

Member Function Documentation

void VRageRender.Animations.MyAnimationInverseKinematics.Clear ( )
inline

Definition at line 630 of file MyAnimationInverseKinematics.cs.

void VRageRender.Animations.MyAnimationInverseKinematics.ClearCharacterOffsetFilteringSamples ( )
inline

Definition at line 301 of file MyAnimationInverseKinematics.cs.

void VRageRender.Animations.MyAnimationInverseKinematics.RegisterFootBone ( string  boneName,
int  boneChainLength,
bool  alignBoneWithTerrain 
)
inline

Register foot IK bone chain.

Definition at line 610 of file MyAnimationInverseKinematics.cs.

void VRageRender.Animations.MyAnimationInverseKinematics.RegisterIgnoredBone ( string  boneName)
inline

Register bone ignored by IK. IK will not move it.

Definition at line 624 of file MyAnimationInverseKinematics.cs.

void VRageRender.Animations.MyAnimationInverseKinematics.SolveFeet ( bool  enabled,
MyCharacterBone[]  characterBones,
bool  allowMovingWithBody 
)
inline

Solve feet positions.

Parameters
enabledFeet resolving is enabled - this is a parameter because of blending over time.
characterBonesCharacter bones storage.
allowMovingWithBodyIf feet cannot reach, move the body

Definition at line 161 of file MyAnimationInverseKinematics.cs.

static bool VRageRender.Animations.MyAnimationInverseKinematics.SolveIkCcd ( MyCharacterBone[]  characterBones,
int  boneIndex,
int  chainLength,
ref Vector3D  finalPosition 
)
inlinestatic

Definition at line 481 of file MyAnimationInverseKinematics.cs.

static bool VRageRender.Animations.MyAnimationInverseKinematics.SolveIkTwoBones ( MyCharacterBone[]  characterBones,
MyAnimationIkChainExt  ikChain,
ref Vector3  finalPosition,
ref Vector3  finalNormal,
bool  fromBindPose 
)
inlinestatic

Solve IK for chain of two bones + change rotation of end bone.

Parameters
characterBonesbone storage
ikChaindescription of bone chain
finalPositiondesired position of end bone
finalNormaldesired normal of end bone - would be projected on plane first bone-second bone-third bone
fromBindPosesolve this starting from the bind pose
Returns
true on success

Definition at line 316 of file MyAnimationInverseKinematics.cs.

Member Data Documentation

MatrixD VRageRender.Animations.MyAnimationInverseKinematics.DebugTransform
static

Definition at line 123 of file MyAnimationInverseKinematics.cs.

Property Documentation

ListReader<MyAnimationIkChainExt> VRageRender.Animations.MyAnimationInverseKinematics.Feet
get

List of all feet bones.

Definition at line 135 of file MyAnimationInverseKinematics.cs.

float VRageRender.Animations.MyAnimationInverseKinematics.RootBoneVerticalOffset
get

Definition at line 150 of file MyAnimationInverseKinematics.cs.

IMyTerrainHeightProvider VRageRender.Animations.MyAnimationInverseKinematics.TerrainHeightProvider
getset

Interface providing results from raycasts.

Definition at line 143 of file MyAnimationInverseKinematics.cs.


The documentation for this class was generated from the following file: