![]() |
Creature Control for Unity v0.1
|
The target rig or skeleton for an insect.
Public Types | |
| enum | WalkerType { Sole , Toe } |
| The type of walker. More... | |
Public Member Functions | |
| override void | AlignPose () |
| Align the pose. | |
| override void | PoseTargets () |
| Pose the target rig using the IK targets. | |
| void | AlignPair (Transform leftTransform, Transform rightTransform) |
| Align a pair of bones. | |
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 | |
| LegTarget | leftFrontLeg |
| The left front leg. | |
| LegTarget | leftMiddleLeg |
| The left middle leg. | |
| LegTarget | leftBackLeg |
| The left hind leg. | |
| LegTarget | rightFrontLeg |
| The right front leg. | |
| LegTarget | rightMiddleLeg |
| The right middle leg. | |
| LegTarget | rightBackLeg |
| The right hindLeg. | |
| float | soleThickness = 0 |
| The distance from the toe bone to the ground. | |
| Transform | leftIkTarget |
| The target Transform for the left (middle) foot for inverse kinamatics calculations. | |
| Transform | rightIkTarget |
| The target Transfrom for the right (middle) foot for investe kinematics calculations. | |
| TorsoTarget | torso |
| The target for the thorax pose. | |
| TailTarget | tail |
| WalkerType | walkertype = WalkerType.Sole |
| The type of walker. | |
Protected Member Functions | |
| virtual void | MatchIkOrigin () |
| Calculate and set the inverse kinematics targets. | |
| virtual void | Awake () |
| Unity calls Awake when loading an instance of a script component. | |
Protected Attributes | |
| Animator | animator |
| The animator for the creature. | |
Properties | |
| new HeadTarget | head [get] |
| The insect-specific head target. | |
| IReadOnlyList< LegTarget > | legs [get] |
| All legs of the insect. | |
| override float | length [get] |
| The length of the insect. | |
| Transform | legsPivotPoint [get] |
| The center pivot point around which the legs rotate when turning. | |
|
inherited |
|
virtual |
Align the pose.
This will
Reimplemented from Creatures.Rig.
|
virtual |
Pose the target rig using the IK targets.
Reimplemented from Creatures.Rig.
|
staticinherited |
Find the creature 3D model in the hierarchy.
| creatureTransform | The (root) transform of the creature |
|
staticinherited |
Compute the rotation from the target to the creature's bone.
| bone | The creature's bone |
| target | The target for this bone |
|
staticinherited |
Compute the rotation from the target to the creature's bone.
| target | The target for this bone |
| bone | The creature's bone |
|
inherited |
Align a pair of bones.
| leftTransform | The transform of the left side bone |
| rightTransform | The transform of the right side bone |
This will
|
inherited |
The target for the tail pose
|
protectedinherited |
The animator for the creature.
This is optional