Functions Documentation |
|
Name |
objIncVel |
Syntax |
(objIncVel spaceObject vector) |
Argument List |
spaceObject: The space object you want to alter a numerical data in.
vector: The vector you want to change the space object velocity by. |
Returns |
velVector: returns the new velocity vector. |
Category |
vector operator, spaceobject
|
Description |
Adds the number to the data in the space object named by the string. |
Example |
(objIncVel gPlayerShip (sysVectorPolarVelocity
(shpgetDirection gPlayerShip) 10))
Makes the playership accelerate by 10%c in the direction it's facing. |
Comment |
you can stop a space object with objmoveto. Then you can set the velocity to anything you want. |