SmartBody characters that use gazing need to have the following joints:
Joint Name
|
---|
If a character lacks those joint names (or joints that are mapped to those names), then the gaze controller will be unable to properly function. For details on mapping skeletons to match the SmartBody format, see the section on Mapping Skeletons to SmartBody.
The gaze controller sets limits on the amount of movement for each joint that can be directed by the gaze. These limits can be adjusted by setting the following attributes on the character:
Attribute | Default Value | Description |
---|---|---|
gaze.speedEyes | 1000 | Relative speed of the eyes during gazing. The default value of 1000 is set to approximate the speed of normal human eye movement. Thus, to move the eyes half as fast, set this to 500, or twice as fast,set this to 2000. |
gaze.speedNeck | 1000 | Relative speed of the neck during gazing. The default value of 1000 is set to approximate the speed of normal neck movement. Thus, to move the neck half as fast, set this to 500, or twice as fast,set this to 2000. |
gaze.limitPitchUpEyes | -35 | The upper pitch limit of the eyes (X-axis) |
gaze.limitPitchDownEyes | 35 | The lower pitch limit of the eyes (X-axis) |
gaze.limitHeadingEyes | 40 | The heading limits of the eyes (Y-axis) |
gaze.limitRollEyes | 0 | The roll limits of the eyes (Z-axis) |
gaze.limitPitchUpNeck | -45 | The upper pitch limit of the neck (X-axis) |
gaze.limitPitchDownNeck | 45 | The lower pitch limit of the neck (X-axis) |
gaze.limitHeadingNeck | 90 | The heading limits of the neck (Y-axis) |
gaze.limitRollNeck | 35 | The roll limits of the neck (Z-axis) |
gaze.limitPitchUpChest | -6 | The upper pitch limit of the chest (X-axis) |
gaze.limitPitchDownChest | 6 | The lower pitch limit of the chest (X-axis) |
gaze.limitHeadingChest | 15 | The heading limits of the chest (Y-axis) |
gaze.limitRollChest | 5 | The roll limits of the chest (Z-axis) |
gaze.limitPitchUpBack | -15 | The upper pitch limit of the back (X-axis) |
gaze.limitPitchDownBack | 15 | The lower pitch limit of the back (X-axis) |
gaze.limitHeadingBack | 30 | The heading limits of the back (Y-axis) |
gaze.limitRollBack | 10 | The roll limits of the back (Z-axis) |
For example, to make the speed of the eye movement 20% faster, do:
mycharacter = scene.getCharacter(name) mycharacter.setDoubleAttribute("gaze.speedEyes", 1200)