| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Behavior com.sun.j3d.utils.behaviors.FlightBehavior
FlightBehavior | public class FlightBehavior extends Behavior implements ComponentListener(Code) | | Generalized Behavior Flying through a Universe.
Either control via the Keyboard with left & right arrows producing roll
and up/down keys producing pitch.
OR use the mouse for pitch and roll
In both cases velocity is controlled using keys A and Z to increase and
decrease respectively.
The mouse motion is proportional to the position of the mouse press the
C key to center the view
If the shift key is held down while the mouse is moved then their will
be no effect on the behavior. This allows the user to move the mouse
out of the window wihout interfacting with the 3D environment
|
MAX_ANGLE | double MAX_ANGLE(Code) | | |
MAX_VELOCITY | float MAX_VELOCITY(Code) | | |
MIN_VELOCITY | float MIN_VELOCITY(Code) | | |
MOUSE_MOVEMENT | double MOUSE_MOVEMENT(Code) | | |
ROT_ANGLE | double ROT_ANGLE(Code) | | |
VELOCITY_INC | float VELOCITY_INC(Code) | | |
acceleration | double acceleration(Code) | | |
currentMatrix | Matrix4d currentMatrix(Code) | | |
currentPosn | Vector3d currentPosn(Code) | | |
newVelocity | double newVelocity(Code) | | |
pitchAngle | double pitchAngle(Code) | | |
pitchAngleDelta | double pitchAngleDelta(Code) | | |
rollAngle | double rollAngle(Code) | | |
rollAngleDelta | double rollAngleDelta(Code) | | |
startOrient | Matrix4d startOrient(Code) | | |
velocity | double velocity(Code) | | |
yawAngle | double yawAngle(Code) | | |
yawAngleDelta | double yawAngleDelta(Code) | | |
FlightBehavior | public FlightBehavior(double x, double y, double z, double roll, double pitch, double yaw, TransformGroup t, Canvas3D canvas)(Code) | | Sets initial viewer position and direction of view to values provided
|
buttonPressed | final public boolean buttonPressed()(Code) | | |
getMaxVelocity | public float getMaxVelocity()(Code) | | |
getMinVelocity | public float getMinVelocity()(Code) | | |
getPitchAngle | final public double getPitchAngle()(Code) | | |
getRollAngle | final public double getRollAngle()(Code) | | |
getVelocity | final public double getVelocity()(Code) | | |
getYawAngle | final public double getYawAngle()(Code) | | |
initialize | public void initialize()(Code) | | |
setAcceleration | public void setAcceleration(double acceleration)(Code) | | |
setMinMaxVelocity | public void setMinMaxVelocity(float min, float max)(Code) | | |
setMouseSensitivity | final public void setMouseSensitivity(double mouseMotion, double angle)(Code) | | A movement of the mouse from the center of the screen by mouseMotion
will cause the rotation of angle
|
setPosition | public void setPosition(Vector3d pos)(Code) | | |
|
|
|