Java Reference
In-Depth Information
private WakeupOr allEvents;
private String buttonvalue = new String();
private boolean poststop = false;
private float turningAngle = 0.0f;
private float pitchAngle = 0.0f;
private Point3f viewposi = new Point3f();
private Point3f firstviewposi = new Point3f();
private Point3f outsideposi = new Point3f();
private boolean ticked = false;
private int delay = 20;
private JSlider FrameDelay;
private Animation animator; //for animating thread;
private boolean animating = false;
private BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 0.1);
private static final float PAI = 3.14159f;
private static final float ANGLEPAI = 2.0f*PAI/360.0f;
private static final float SPAN = 0.02f;
private static final float ANGLESTEP = 0.01f;
private static final float Outsidescale = 0.4f;
private static final int VIEWMOTION = 5001;
private static final int DOOROPEN = 401;
private static final int DOORCLOSE = 402;
private static final int ANIMATION = 501;
private static final int INTERACTION = 502;
private static final int Forward = KeyEvent.VK_UP;
private static final int Backward = KeyEvent.VK_DOWN;
private static final int LEFT = KeyEvent.VK_LEFT;
private static final int RIGHT = KeyEvent.VK_RIGHT;
private static final int SHIFTRIGHT = KeyEvent.VK_R;
private static final int SHIFTLEFT = KeyEvent.VK_L;
private static final int Up = KeyEvent.VK_U;
private static final int Down = KeyEvent.VK_D;
G.3 constructor of navIGatIon and collIsIon
detectIon functIon
NavigatorBehavior(TransformGroup viewTrans, TransformGroup bodyTrans, Shape3D bodyshape)
{
this.bodyshape = bodyshape;
this.viewTrans = viewTrans;
this.bodyTrans = bodyTrans;
}
Search WWH ::

Custom Search