Discuss this page on this page's Talk Page
Syntax | (objIncVel spaceObject vector) → vector |
---|---|
Arguments | 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 | vector: returns the new velocity vector. |
Category | SpaceObject, vector operator |
Description | Adds the number to the data in the space object named by the string. |
You can stop a space object with objMoveTo. Then you can set the velocity to anything.
(objIncVel gPlayerShip (sysVectorPolarOffset Nil 0 10))
Makes the player ship move to the right by 10 more.
Return to Functions list