Class BackspinPhysics

java.lang.Object
  extended by BackspinPhysics
All Implemented Interfaces:
java.lang.Runnable

public class BackspinPhysics
extends java.lang.Object
implements java.lang.Runnable

Class: BackspinPhysics


Constructor Summary
BackspinPhysics(java.lang.String ip, int port, double angVel, double vel)
          Constructor; initializes the transmitter with the specified ip and port; Also tells the physics engine how fast the ball is pitched and how much backspin is put on it.
 
Method Summary
 void run()
          runs the physics for the pitch and outputs the position, velocity, and orientation updates to DIS espdus which are broadcast on the multicast port specified in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackspinPhysics

public BackspinPhysics(java.lang.String ip,
                       int port,
                       double angVel,
                       double vel)
Constructor; initializes the transmitter with the specified ip and port; Also tells the physics engine how fast the ball is pitched and how much backspin is put on it.

Parameters:
ip - The multicast address that the DIS is send on
port - The port; for DIS, this must match the espdu transform in the VRML scene
angVel - Angular velocity (backspin) of the ball, in revolutions per minute
vel - Linear velocity of the ball (how fast it is pitched) in meters per second
Method Detail

run

public void run()
runs the physics for the pitch and outputs the position, velocity, and orientation updates to DIS espdus which are broadcast on the multicast port specified in the constructor.

Specified by:
run in interface java.lang.Runnable