Discuss this page on this page's Talk Page
See sysVectorPolarVelocity at Xelerus
| Syntax | (sysVectorPolarVelocity number number) |
|---|---|
| Arguments | number: The angle of the vector from 0 to 360. 0 is to the right. |
| number: the speed of the vector (in % of c) | |
| Returns | velVector: returns the new velocity vector |
| Category | system, vector operator |
| Description | A useful wrapper function for other velocity operator functions that require messy velVector arguments. |
(objSetVel gPlayerShip (sysVectorPolarVelocity (shpGetDirection gPlayerShip) 50))
Will cause the playership to scream forward at 50% lightspeed. A necessary function if you are using objIncVel or objSetVel which take velVectors as their velocity arguments.
Return to Functions list