|
Creature Control for Unity v0.1
|
The head in a TargetRig which is used to control the head of a model.
Public Member Functions | |
| virtual void | MatchTo (Bone bone) |
| Function to match the target to the selected bone. | |
| virtual void | Unmatch () |
| Set properties for the case no matching bone exists. | |
| virtual void | Align () |
| Align the pose. | |
| virtual void | UpdateBones (Bone bone) |
| Update the pose of the bone from this target. | |
Public Attributes | |
| Rig | rig |
| The target Rig to which this target belongs. | |
| bool | isMatched = false |
| Is this target matched to a bone? | |
| Quaternion | targetToBone |
| The rotation to transform the target rotation into the rotation of the bone in the model. | |
|
virtualinherited |
Function to match the target to the selected bone.
| bone | The bone to match to |
This will put the target at the bone position and orientation and calculate the targetToBone rotation When the bone is null, the value isMatched will become false
Reimplemented in Creatures.Insects.AntennaTarget, Creatures.Insects.HeadTarget, Creatures.LegTarget, and Creatures.TailTarget.
|
virtualinherited |
Set properties for the case no matching bone exists.
Reimplemented in Creatures.LegTarget.
|
virtualinherited |
Align the pose.
This will make the pose of the creature symmetric
Reimplemented in Creatures.HeadTarget, Creatures.Insects.HeadTarget, and Creatures.TailTarget.
|
virtualinherited |
Update the pose of the bone from this target.
| bone | The bone for which the pose is updated |
Reimplemented in Creatures.Insects.AntennaTarget, and Creatures.Insects.HeadTarget.