|
Creature Control for Unity v0.1
|
A head in a target Rig which is used to control the head of a model.
Public Member Functions | |
| override void | MatchTo (Bone bone) |
| Function to match the target to the selected bone. | |
| override void | UpdateBones (Bone bone) |
| Update the pose of the bone from this target. | |
| override void | Align () |
| Align the pose. | |
| virtual void | Unmatch () |
| Set properties for the case no matching bone exists. | |
Public Attributes | |
| AntennaTarget | antennaLeft |
| The target for the left antenna. | |
| AntennaTarget | antennaRight |
| The target for the right antenna. | |
| 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. | |
|
virtual |
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 from Creatures.Target.
|
virtual |
Update the pose of the bone from this target.
| bone | The bone for which the pose is updated |
Reimplemented from Creatures.Target.
|
virtual |
Align the pose.
This will make the pose of the creature symmetric
Reimplemented from Creatures.HeadTarget.
|
virtualinherited |
Set properties for the case no matching bone exists.
Reimplemented in Creatures.LegTarget.