Packageorg.rapidphysics
Classpublic class RapidG
InheritanceRapidG Inheritance Object

A few useful Globals are stored here



Public Properties
 PropertyDefined By
  elapsed : Number
[static] How much time has elapsed this frame
RapidG
  frameRate : Number
[static]
RapidG
  height : Number
[static]
RapidG
  integrationMethod : Number = 1
[static] Change this to either INTEGRATION_EULER or INTEGRATION_VERLET depending on what your needs are (verlet is almost always better)
RapidG
  keys : Keyboard
[static]
RapidG
  libraryDesc : String
[static] [read-only]
RapidG
  maxElapsed : Number = 0.0333333
[static]
RapidG
  mouseX : Number = 0
[static]
RapidG
  mouseY : Number = 0
[static]
RapidG
  paused : Boolean = false
[static] Halts the simulation
RapidG
  stage : Stage
[static]
RapidG
  timeScale : Number = 1.0
[static]
RapidG
  visualDebug : Boolean = true
[static] Draws debug info (velocity each frame, line normals, etc)
RapidG
  width : Number
[static]
RapidG
Public Methods
 MethodDefined By
  
RapidG
Public Constants
 ConstantDefined By
  INTEGRATION_EULER : Number = 0
[static]
RapidG
  INTEGRATION_VERLET : Number = 1
[static]
RapidG
  LIBRARY_COMMENT : String = Beta
[static]
RapidG
  LIBRARY_MAJOR_VERSION : uint = 0
[static]
RapidG
  LIBRARY_MINOR_VERSION : uint = 75
[static]
RapidG
  LIBRARY_NAME : String = Rapid Physics
[static]
RapidG
Property Detail
elapsedproperty
public static var elapsed:Number

How much time has elapsed this frame

frameRateproperty 
public static var frameRate:Number

heightproperty 
public static var height:Number

integrationMethodproperty 
public static var integrationMethod:Number = 1

Change this to either INTEGRATION_EULER or INTEGRATION_VERLET depending on what your needs are (verlet is almost always better)

keysproperty 
public static var keys:Keyboard

libraryDescproperty 
libraryDesc:String  [read-only]


Implementation
    public static function get libraryDesc():String
maxElapsedproperty 
public static var maxElapsed:Number = 0.0333333

mouseXproperty 
public static var mouseX:Number = 0

mouseYproperty 
public static var mouseY:Number = 0

pausedproperty 
public static var paused:Boolean = false

Halts the simulation

stageproperty 
public static var stage:Stage

timeScaleproperty 
public static var timeScale:Number = 1.0

visualDebugproperty 
public static var visualDebug:Boolean = true

Draws debug info (velocity each frame, line normals, etc)

widthproperty 
public static var width:Number

Constructor Detail
RapidG()Constructor
public function RapidG()



Constant Detail
INTEGRATION_EULERConstant
public static const INTEGRATION_EULER:Number = 0

INTEGRATION_VERLETConstant 
public static const INTEGRATION_VERLET:Number = 1

LIBRARY_COMMENTConstant 
public static const LIBRARY_COMMENT:String = Beta

LIBRARY_MAJOR_VERSIONConstant 
public static const LIBRARY_MAJOR_VERSION:uint = 0

LIBRARY_MINOR_VERSIONConstant 
public static const LIBRARY_MINOR_VERSION:uint = 75

LIBRARY_NAMEConstant 
public static const LIBRARY_NAME:String = Rapid Physics