Represents a wheel used by the locomotion systems
direction:Number [read-write]Implementation
public function get direction():Number
public function set direction(value:Number):void
maximumRotationSpeed:Number [write-only]Implementation
public function set maximumRotationSpeed(value:Number):void
public var noiseLevel:Number
The amount of random variations in the wheel's speed produced
by the irregularities in the motors.
position:Vector [read-only]
Implementation
public function get position():Vector
radius:Number [read-only]Implementation
public function get radius():Number
shape:Polygon [read-only]
Implementation
public function get shape():Polygon
speed:Number [read-only]Implementation
public function get speed():Number
public function Wheel(radius:Number, RPS:Number, position:Vector, noiseLevel:Number = 0.1)
Create a wheel with the given properties:
Parameters
| radius:Number — - radius of the wheel in pixels
|
| |
| RPS:Number — - maximum speed of the wheel in rotations per second
|
| |
| position:Vector — - position of the wheel relative to the center of the wheel system
|
| |
| noiseLevel:Number (default = 0.1) — - the amount of random variations in the wheel's speed produced
by the irregularities in the motors.
|
public static const DEFAULT_COLOR:uint = 0x000000
public static const FORWARD:Number = 0
public static const REVERSE:Number = 1
public static const STOP:Number = 2