This command makes a 3D object move in response to the arrow keys.
object.Walk(Player,WalkSpeed,StrafeSpeed,RotateSpeed, RunFactor)
Player | Player number (1,2, 3, and so on). For use with the GameInput command. |
WalkSpeed | Speed at which the forward or backward motion will occur. |
StrafeSpeed | Strafe speed. |
RotateSpeed | Speed for rotation in radians per second. |
RunFactor | Multiplier factor between walking and running. |
This command uses the arrow keys to move the object. The left and right arrow keys rotate the object about its y-axis, while the up and arrow keys move it forward or back (the direction of motion depends on which way the object is pointing).
This is a very easy way to make an object move through a 3D world.
oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); ocamera.MoveBack(1200); sphere.Walk(); //loop While(TRUE);23