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

Description

The head in a TargetRig which is used to control the head of a model.

Inheritance diagram for Creatures.TorsoTarget:
Creatures.Target

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.

Member Function Documentation

◆ MatchTo()

virtual void Creatures.Target.MatchTo ( Bone bone)
virtualinherited

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 in Creatures.Insects.AntennaTarget, Creatures.Insects.HeadTarget, Creatures.LegTarget, and Creatures.TailTarget.

◆ Unmatch()

virtual void Creatures.Target.Unmatch ( )
virtualinherited

Set properties for the case no matching bone exists.

Reimplemented in Creatures.LegTarget.

◆ Align()

virtual void Creatures.Target.Align ( )
virtualinherited

Align the pose.

This will make the pose of the creature symmetric

Reimplemented in Creatures.HeadTarget, Creatures.Insects.HeadTarget, and Creatures.TailTarget.

◆ UpdateBones()

virtual void Creatures.Target.UpdateBones ( Bone bone)
virtualinherited

Update the pose of the bone from this target.

Parameters
boneThe bone for which the pose is updated

Reimplemented in Creatures.Insects.AntennaTarget, and Creatures.Insects.HeadTarget.


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