Discuss this page on this page's [[sysVectorPolarVelocity Talk Page|Talk Page]] === sysVectorPolarVelocity === See [[http://xelerus.de/index.php?s=functions&function=327|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 functions|system]], [[vector operator functions|vector operator]] | ^ 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. A necessary function if you are using objIncVel or objSetVel which take velVectors as their velocity arguments. Return to [[:Functions]] list