Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.IKLimbController Class Reference

Public Member Functions

 IKLimbController ()
 
void Update ()
 
void OnAnimatorIK (Animator animator, AvatarIKGoal avatarIKGoal)
 
void AddTarget (Transform targetTransform, AnimationCurve transitionCurve, bool isInstant)
 Adds a new IK target More...
 
void Clear (bool isInstant)
 
string CreateSaveData ()
 
void LoadData (string data)
 

Detailed Description

This processes all IKCommand classes assigned to a specific AvatarIKGoal.

Constructor & Destructor Documentation

◆ IKLimbController()

AC.IKLimbController.IKLimbController ( )

The default Constructor

Member Function Documentation

◆ AddTarget()

void AC.IKLimbController.AddTarget ( Transform  targetTransform,
AnimationCurve  transitionCurve,
bool  isInstant 
)

Adds a new IK target

Parameters
targetTransformThe transform to target
transitionCurveA curve to describe the motion
isInstantIf True, the full weight will be applied instantly

◆ Clear()

void AC.IKLimbController.Clear ( bool  isInstant)

Clears all IK commands

Parameters
isInstantIf True, the effects will be disabled instantly, as opposed to transitioned out smoothly

◆ CreateSaveData()

string AC.IKLimbController.CreateSaveData ( )

Serializes the current state into a single string

◆ LoadData()

void AC.IKLimbController.LoadData ( string  data)

Restores a state from a serialized string

◆ OnAnimatorIK()

void AC.IKLimbController.OnAnimatorIK ( Animator  animator,
AvatarIKGoal  avatarIKGoal 
)

Applies the effect to an Animator

◆ Update()

void AC.IKLimbController.Update ( )

Updates the IK