Package | org.rapidphysics |
Class | public class RapidSim |
Inheritance | RapidSim ![]() |
Subclasses | RapidPhysics |
Property | Defined By | ||
---|---|---|---|
_total : uint
Total number of milliseconds elapsed since game start. | RapidSim |
Method | Defined By | ||
---|---|---|---|
RapidSim(initState:Class, frameRate:Number, width:Number, height:Number) | RapidSim | ||
switchWorld(world:Class):void
Switch physics worlds here
| RapidSim |
Method | Defined By | ||
---|---|---|---|
onAddedToStage(e:Event):void | RapidSim | ||
onEnterFrame(e:Event):void
Heavy lifting of the simulation run
| RapidSim | ||
onKeyDown(FlashEvent:KeyboardEvent):void
Internal event handler for input and focus. | RapidSim | ||
onKeyUp(FlashEvent:KeyboardEvent):void | RapidSim | ||
step():void | RapidSim | ||
updateInput():void | RapidSim |
_total | property |
protected var _total:uint
Total number of milliseconds elapsed since game start.
RapidSim | () | Constructor |
public function RapidSim(initState:Class, frameRate:Number, width:Number, height:Number)
Parameters
initState:Class | |
frameRate:Number | |
width:Number | |
height:Number |
onAddedToStage | () | method |
protected function onAddedToStage(e:Event):void
Parameters
e:Event |
onEnterFrame | () | method |
protected function onEnterFrame(e:Event):void
Heavy lifting of the simulation run
Parameters
e:Event |
onKeyDown | () | method |
protected function onKeyDown(FlashEvent:KeyboardEvent):void
Internal event handler for input and focus.
Parameters
FlashEvent:KeyboardEvent — Flash keyboard event.
|
onKeyUp | () | method |
protected function onKeyUp(FlashEvent:KeyboardEvent):void
Parameters
FlashEvent:KeyboardEvent |
step | () | method |
protected function step():void
switchWorld | () | method |
public function switchWorld(world:Class):void
Switch physics worlds here
Parameters
world:Class |
updateInput | () | method |
protected function updateInput():void