|
Adventure Creator 1.85.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2025
|
Public Member Functions | |
| IKCommand (Transform _targetTransform, AnimationCurve _transitionCurve, bool onInstantly) | |
| void | Update (float deltaTime) |
| Updates the command's transition. | |
| void | OnAnimatorIK (Animator animator, AvatarIKGoal avatarIKGoal, IKCommand otherCommand=null) |
| Applies the command's effect on an Animator. | |
| void | Deactivate (AnimationCurve deactivationCurve=null) |
| Deactivates the command's effect. | |
| bool | HasTarget (Transform transform) |
| Checks if the command refers to a given target transform. | |
| string | GetSaveData () |
Static Public Member Functions | |
| static IKCommand | LoadData (string data) |
Properties | |
| bool | IsReadyToDestroy [get] |
| bool | IsActive [get] |
| bool | IsInTransition [get] |
This stores information about an active IK limb command.
| AC.IKCommand.IKCommand | ( | Transform | _targetTransform, |
| AnimationCurve | _transitionCurve, | ||
| bool | onInstantly ) |
The default Constructor
| void AC.IKCommand.Deactivate | ( | AnimationCurve | deactivationCurve = null | ) |
Deactivates the command's effect.
| deactivationCurve | If set, the effect's transition data will be replaced by this |
| string AC.IKCommand.GetSaveData | ( | ) |
Serializes data about the command into a single string
| bool AC.IKCommand.HasTarget | ( | Transform | transform | ) |
Checks if the command refers to a given target transform.
| transform | The transform to check for |
|
static |
Creates a new instance of the class from string data
| void AC.IKCommand.OnAnimatorIK | ( | Animator | animator, |
| AvatarIKGoal | avatarIKGoal, | ||
| IKCommand | otherCommand = null ) |
Applies the command's effect on an Animator.
| animator | The Animator to control |
| avatarIKGoal | The AvatarIKGoal to control |
| otherCommand | If set, the combined effects will be weight-blended together |
| void AC.IKCommand.Update | ( | float | deltaTime | ) |
Updates the command's transition.
| deltaTime | The Time.deltaTime value this frame |
|
get |
True if the command is active
|
get |
True if the command is currently in transition
|
get |
True if the command is no longer having an effect