Functions Documentation |
|
Name |
sysVectorPolarVelocity |
Syntax |
(sysVectorPolarVelocity number number) |
Argument List |
number- the angle of the vector
number- the speed of the vector (in % of c) |
Returns |
velVector- returns the new velocity vector |
Category |
vector operator, system
|
Description |
A useful wrapper function for other velocity operator functions that require messy velVector arguments. |
Example |
(objSetVel gPlayerShip (sysVectorPolarVelocity (shpGetDirection gPlayerShip) 50))
Will cause the playership to scream forward at 50% lightspeed. |
Comment |
A necessary function if you are using objIncVel or objSetVel which take velVectors as their velocity arguments. |