|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectBackspinPhysics
public class BackspinPhysics
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 |
|---|
public BackspinPhysics(java.lang.String ip,
int port,
double angVel,
double vel)
ip - The multicast address that the DIS is send onport - The port; for DIS, this must match the espdu transform in the VRML sceneangVel - Angular velocity (backspin) of the ball, in revolutions per minutevel - Linear velocity of the ball (how fast it is pitched) in meters per second| Method Detail |
|---|
public void run()
run in interface java.lang.Runnable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||