Hello,

I'm simulating movement of a basic robot (or well trying to) using Java3D with great difficulty.
The robot is to move around on the ground (x and z coords) in a virtual environment given a user set of commands read in from a file, such as:

  FORWARD 10
  TURN LEFT 90 DEGREES
  FORWARD 5
  TURN RIGHT 90 DEGREES
  REVERSE 10


My main problem is that I am unsure as to how to implement this, and the best way to do it. I have tried Using PositionInterpolator and RotationInterpolator to be executed in sequence without success..

If someone could possibly show me how for example I could move an object forward, stop, turn left or right then move forward again in that direction i would be very grateful!

Any help on how I can move an object around as above, would be much appreciated, and examples of code on doing this would be greatfully appreciated.


Thankyou,

Shahbaz

Reply via email to