![]() |
Creature Control for Unity v0.1
|
A target rig or skeleton for a creature.
Public Types | |
| enum | WalkerType { Sole , Toe } |
| The type of walker. More... | |
Public Member Functions | |
| virtual void | AlignPose () |
| Align the pose. | |
| void | AlignPair (Transform leftTransform, Transform rightTransform) |
| Align a pair of bones. | |
| virtual void | PoseTargets () |
| Pose the target rig using the IK targets. | |
Static Public Member Functions | |
| static Transform | FindModel (Transform creatureTransform) |
| Find the creature 3D model in the hierarchy. | |
| static Quaternion | old_TargetToBoneRotation (Transform bone, Transform target) |
| Compute the rotation from the target to the creature's bone. | |
| static Quaternion | TargetToBoneRotation (Transform target, Transform bone) |
| Compute the rotation from the target to the creature's bone. | |
Public Attributes | |
| HeadTarget | head |
| The target for the Head pose. | |
| TorsoTarget | torso |
| The target for the thorax pose. | |
| TailTarget | tail |
| WalkerType | walkertype = WalkerType.Sole |
| The type of walker. | |
Protected Member Functions | |
| virtual void | Awake () |
| Unity calls Awake when loading an instance of a script component. | |
Protected Attributes | |
| Animator | animator |
| The animator for the creature. | |
Properties | |
| virtual float | length [get] |
| The length of the creature. | |
|
static |
Find the creature 3D model in the hierarchy.
| creatureTransform | The (root) transform of the creature |
|
static |
Compute the rotation from the target to the creature's bone.
| bone | The creature's bone |
| target | The target for this bone |
|
static |
Compute the rotation from the target to the creature's bone.
| target | The target for this bone |
| bone | The creature's bone |
|
virtual |
Align the pose.
This will
Reimplemented in Creatures.Insects.Rig.
| void Creatures.Rig.AlignPair | ( | Transform | leftTransform, |
| Transform | rightTransform ) |
Align a pair of bones.
| leftTransform | The transform of the left side bone |
| rightTransform | The transform of the right side bone |
This will
|
virtual |
Pose the target rig using the IK targets.
Reimplemented in Creatures.Insects.Rig.
| TailTarget Creatures.Rig.tail |
The target for the tail pose
|
protected |
The animator for the creature.
This is optional