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.


Method Summary
 TransformGroup getTransformGroup()
           
 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.
 

Method Detail

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) Transform3D
rotX - the rotation about the x-axis
rotY - the rotation about the y-axis
thirdPersonOffset - the offset to the view-focus in world coordinates