Creature Control for Unity v0.1
Loading...
Searching...
No Matches
Creatures.Insects.HeadTarget Class Reference

Description

A head in a target Rig which is used to control the head of a model.

Inheritance diagram for Creatures.Insects.HeadTarget:
Creatures.HeadTarget Creatures.Target

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.

Member Function Documentation

◆ MatchTo()

override void Creatures.Insects.HeadTarget.MatchTo ( Bone bone)
virtual

Function to match the target to the selected bone.

Parameters
boneThe 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.

◆ UpdateBones()

override void Creatures.Insects.HeadTarget.UpdateBones ( Bone bone)
virtual

Update the pose of the bone from this target.

Parameters
boneThe bone for which the pose is updated

Reimplemented from Creatures.Target.

◆ Align()

override void Creatures.Insects.HeadTarget.Align ( )
virtual

Align the pose.

This will make the pose of the creature symmetric

Reimplemented from Creatures.HeadTarget.

◆ Unmatch()

virtual void Creatures.Target.Unmatch ( )
virtualinherited

Set properties for the case no matching bone exists.

Reimplemented in Creatures.LegTarget.


The documentation for this class was generated from the following file: