SetSpeed

Category: Objects / Movement
Since engine version: 1.0 OC

Description

Sets the speed of the object.

Syntax

bool SetSpeed(int xdir, int ydir, int precision);

Parameters

xdir:
Horizontal speed divided by precision.
ydir:
Vertical speed divided by precision.
precision:
[opt] Precision. Default 10 if not specified.
See also: GetXDir, GetYDir, SetR, SetRDir, SetXDir, SetYDir
Newton, 2009-07