Packageorg.rapidphysics.shapes
Classpublic class RapidPoint
InheritanceRapidPoint Inheritance RapidObject Inheritance RapidBasic Inheritance Object

Pretty much a RapidObject that draws at point at it's current (x,y)



Public Properties
 PropertyDefined By
 Inheritedacceleration : Point
Mess with this in your update loop
RapidObject
 Inheritedactive : Boolean
RapidBasic
 Inheritedcenter : Point
Relative to (x,y)
RapidObject
  drawSize : Number
RapidPoint
 Inheritedexists : Boolean
RapidBasic
 InheritedfillColor : uint
RapidObject
 Inheritedfixed : Boolean = false
Set to true to prevent this object from moving
RapidObject
 Inheritedheight : Number
Depending on the shape, height can totally be negative!
RapidObject
 InheritedlineColor : uint
0xRRGGBB
RapidObject
 InheritedmaxVelocity : Point
RapidObject
 InheritednextPosition : Point
RapidObject
 InheritednextVelocity : Point
RapidObject
 InheritednextX : Number
RapidObject
 InheritednextY : Number
RapidObject
 Inheritedposition : Point
RapidObject
 InheritedpredictMotionFunction : Function
I wrote some code to allow dynamic changes between Euler integration and Verlet integration.
RapidObject
 InheritedprevX : Number
RapidObject
 InheritedprevY : Number
RapidObject
 Inheritedradians : Number
RapidObject
 Inheritedshape : Shape
RapidObject
 Inheritedthickness : Number = 1
RapidObject
 Inheritedvelocity : Point
Mess with this in your update loop
RapidObject
 Inheritedvisible : Boolean
RapidBasic
 Inheritedwidth : Number
Depending on the shape, width can totally be negative!
RapidObject
 Inheritedx : Number
RapidObject
 Inheritedy : Number
RapidObject
Protected Properties
 PropertyDefined By
 Inheritedalpha : Number
RapidObject
 Inherited_point : Point
General usage
RapidObject
Public Methods
 MethodDefined By
  
RapidPoint(X:Number = 0, Y:Number = 0, DrawSize:Number = 1.0)
RapidPoint
 Inherited
debugDraw():void
[override]
RapidObject
 Inherited
destroy():void
[override]
RapidObject
  
draw():void
[override]
RapidPoint
 Inherited
postUpdate():void
[override] Predicts where this object will be by the next preUpdate() Provides enough information to draw physics information, and resolve collisions
RapidObject
 Inherited
preDraw():void
[override]
RapidObject
 Inherited
preUpdate():void
[override] Occurs right after collision resolution Set x to nextX, etc etc
RapidObject
 Inherited
reset(X:Number, Y:Number):void
RapidObject
 Inherited
setIntegrationMethod(method:Number):void
takes RapidG.INTEGRATION_EULER, etc.
RapidObject
 Inherited
update():void
[override] Add your game's update logic here
RapidObject
Protected Methods
 MethodDefined By
 Inherited
RapidObject
 Inherited
RapidObject
 Inherited
Override this function if your shape has a different center
RapidObject
 Inherited
RapidObject
Property Detail
drawSizeproperty
public var drawSize:Number

Constructor Detail
RapidPoint()Constructor
public function RapidPoint(X:Number = 0, Y:Number = 0, DrawSize:Number = 1.0)



Parameters
X:Number (default = 0)
 
Y:Number (default = 0)
 
DrawSize:Number (default = 1.0)
Method Detail
draw()method
override public function draw():void