org.xith3d.scenegraph.avatar
Interface AvatarTransform
- All Known Implementing Classes:
- DefaultAvatarTransform
public interface AvatarTransform
An AvatarTransform can be added to a FirstPersonInputHandler.
It contains a Node (e.g. a Model) that is Transformed with the View.
getTransformGroup
TransformGroup getTransformGroup()
- Returns:
- the TransformGroup, that must be added to the root BranchGroup.
transform
void transform(Transform3D viewTransform,
float rotX,
float rotY,
org.openmali.vecmath2.Vector3f thirdPersonOffset)
- This is called by the
FirstPersonInputHandler each frame
to transform the avatar with the View.
- Parameters:
viewTransform - the current main TRansformable's (View's) Transform3DrotX - the rotation about the x-axisrotY - the rotation about the y-axisthirdPersonOffset - the offset to the view-focus in world coordinates