|
Creature Control for Unity v0.1
|
The target rig or skeleton for an insect.
Public Member Functions | |
| override void | Pose () |
| Pose the target rig using the IK targets. | |
| override void | MatchTo (Creature creature, ref bool somethingChanged) |
| Align the target rig with a creature. | |
| override void | AlignPose () |
| Align the pose. | |
| void | GroundFeet () |
| void | AlignFeetToGround () |
| void | MatchTo (Creature creature) |
| Align the target rig with a creature. | |
| void | AlignPair (Transform leftTransform, Transform rightTransform) |
| Align a pair of bones. | |
Static Public Member Functions | |
| static Quaternion | TargetToBoneRotation (Transform bone, Transform nextBone, Vector3 up) |
| Compute the rotation from the target to the creature's bone. | |
| static Quaternion | TargetToBoneRotation (Transform bone, Transform nextBone) |
| static Quaternion | TargetToBoneRotation (Transform bone, Vector3 forward, Vector3 up) |
| Compute the rotation from the target to the creature's bone. | |
Public Attributes | |
| TailTarget | tail |
| 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. | |
| HeadTarget | head |
| The target for the Head pose. | |
| TorsoTarget | torso |
| The target for the thorax pose. | |
Protected Member Functions | |
| void | GroundFoot (LegTarget leg) |
| Align the foot inverse kinematics targets to the floor. | |
| void | AlignFootToGround (LegTarget leg) |
| float | DistanceToGround (Vector3 position, out Vector3 groundNormal) |
| virtual void | Awake () |
| Unity calls Awake when loading an instance of a script component. | |
Static Protected Member Functions | |
| static Transform | FindModel (Transform creatureTransform) |
| Find the creature 3D model in the hierarchy. | |
Protected Attributes | |
| Animator | animator |
| The animator for the creature. | |
Properties | |
| HeadTarget | insectHead [get] |
| The insect-specific head target. | |
| LegTarget[] | legs [get] |
| All legs of the insect. | |
|
virtual |
Pose the target rig using the IK targets.
Reimplemented from Creatures.Rig.
|
virtual |
Align the target rig with a creature.
| creature | The creature to align to |
| anythingChanged | True when any property of the creature has changed |
Reimplemented from Creatures.Rig.
|
virtual |
Align the pose.
This will
Reimplemented from Creatures.Rig.
|
protected |
Align the foot inverse kinematics targets to the floor.
| leg | The leg target to align |
|
inherited |
Align the target rig with a creature.
| creature | The creature to align to |
|
staticprotectedinherited |
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 for this target |
| nextBone | The next bone in the creature's hierarchy |
The next bone is used to compute the direction of the bone. The 'up'-direction of the bone is currently fixed to (world) up.
|
staticinherited |
Compute the rotation from the target to the creature's bone.
| bone | The creature's bone for this target |
| forward | The forward direction of the bone |
| up | The up direction of the 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
| TailTarget Creatures.Insects.Rig.tail |
The target for the tail pose
|
protectedinherited |
The animator for the creature.
This is optional