PackageParts
Classpublic class PrismaticJoint
InheritancePrismaticJoint Inheritance JointPart Inheritance Part



Public Properties
 PropertyDefined by
 InheritedanchorX : Number
JointPart
 InheritedanchorY : Number
JointPart
  arrayIndex : int = -1
PrismaticJoint
  autoOscillate : Boolean
PrismaticJoint
  axis : b2Vec2
PrismaticJoint
  blue : int
PrismaticJoint
 InheritedcheckedCollisionGroup : Boolean = false
Part
  collide : Boolean = true
PrismaticJoint
 InheriteddragXOff : Number
Part
 InheriteddragYOff : Number
Part
 InheriteddrawAnyway : Boolean = true
Part
  enablePiston : Boolean
PrismaticJoint
  green : int
PrismaticJoint
  initInitLength : Number
PrismaticJoint
  initLength : Number
PrismaticJoint
 InheritedisEditable : Boolean = true
Part
 InheritedisEnabled : Boolean = true
Part
 InheritedisInitted : Boolean = false
Part
 InheritedisSandbox : Boolean = false
Part
 InheritedisStatic : Boolean = false
Part
  isStiff : Boolean
PrismaticJoint
  jbTutorial : Boolean = false
[static]
PrismaticJoint
 Inheritedm_joint : b2Joint = null
JointPart
  opacity : int
PrismaticJoint
  outline : Boolean
PrismaticJoint
 Inheritedpart1 : ShapePart
JointPart
 Inheritedpart1Index : int = -1
JointPart
 Inheritedpart2 : ShapePart
JointPart
 Inheritedpart2Index : int = -1
JointPart
  pistonDownKey : int
PrismaticJoint
  pistonSpeed : Number
PrismaticJoint
  pistonStrength : Number
PrismaticJoint
  pistonUpKey : int
PrismaticJoint
  red : int
PrismaticJoint
 InheritedrotateAngle : Number
Part
 InheritedrotateOrientation : Number
Part
 Inheritedtype : String
Part
Public Methods
 MethodDefined by
  
PrismaticJoint(p1:ShapePart, p2:ShapePart, x1:Number, y1:Number, x2:Number, y2:Number)
PrismaticJoint
  
CheckForBreakage(world:b2World):void
PrismaticJoint
 Inherited
GetAttachedParts(partList:Array = null):Array
JointPart
 Inherited
GetJoint():b2Joint
JointPart
  
PrismaticJoint
 Inherited
JointPart
  
GetShapes():Array
PrismaticJoint
  
Init(world:b2World, body:b2Body = null):void
PrismaticJoint
  
InsideShape(xVal:Number, yVal:Number, scale:Number):Boolean
PrismaticJoint
 Inherited
IntersectsBox(boxX:Number, boxY:Number, boxW:Number, boxH:Number):Boolean
JointPart
  
KeyInput(key:int, up:Boolean, replay:Boolean):void
PrismaticJoint
  
PrismaticJoint
 Inherited
Move(xVal:Number, yVal:Number):void
JointPart
  
PrismaticJoint
  
RotateAround(xVal:Number, yVal:Number, curAngle:Number):void
PrismaticJoint
  
PrismaticJoint
  
ToString():String
PrismaticJoint
 Inherited
UnInit(world:b2World):void
JointPart
  
Update(world:b2World):void
PrismaticJoint
Protected Methods
 MethodDefined by
 Inherited
IsEnabled(p:Part, i:int, a:Array):Boolean
Part
Property detail
arrayIndexproperty
public var arrayIndex:int = -1
autoOscillateproperty 
public var autoOscillate:Boolean
axisproperty 
public var axis:b2Vec2
blueproperty 
public var blue:int
collideproperty 
public var collide:Boolean = true
enablePistonproperty 
public var enablePiston:Boolean
greenproperty 
public var green:int
initInitLengthproperty 
public var initInitLength:Number
initLengthproperty 
public var initLength:Number
isStiffproperty 
public var isStiff:Boolean
jbTutorialproperty 
public static var jbTutorial:Boolean = false
opacityproperty 
public var opacity:int
outlineproperty 
public var outline:Boolean
pistonDownKeyproperty 
public var pistonDownKey:int
pistonSpeedproperty 
public var pistonSpeed:Number
pistonStrengthproperty 
public var pistonStrength:Number
pistonUpKeyproperty 
public var pistonUpKey:int
redproperty 
public var red:int
Constructor detail
PrismaticJoint()constructor
public function PrismaticJoint(p1:ShapePart, p2:ShapePart, x1:Number, y1:Number, x2:Number, y2:Number)Parameters
p1:ShapePart
 
p2:ShapePart
 
x1:Number
 
y1:Number
 
x2:Number
 
y2:Number
Method detail
CheckForBreakage()method
public function CheckForBreakage(world:b2World):voidParameters
world:b2World
GetJointPerpTranslation()method 
public function GetJointPerpTranslation():Number

Returns
Number
GetShapes()method 
public function GetShapes():Array

Returns
Array
Init()method 
public override function Init(world:b2World, body:b2Body = null):voidParameters
world:b2World
 
body:b2Body (default = null)
InsideShape()method 
public override function InsideShape(xVal:Number, yVal:Number, scale:Number):BooleanParameters
xVal:Number
 
yVal:Number
 
scale:Number

Returns
Boolean
KeyInput()method 
public override function KeyInput(key:int, up:Boolean, replay:Boolean):voidParameters
key:int
 
up:Boolean
 
replay:Boolean
MakeCopy()method 
public override function MakeCopy(p1:ShapePart, p2:ShapePart):JointPartParameters
p1:ShapePart
 
p2:ShapePart

Returns
JointPart
PrepareForResizing()method 
public override function PrepareForResizing():void
RotateAround()method 
public override function RotateAround(xVal:Number, yVal:Number, curAngle:Number):voidParameters
xVal:Number
 
yVal:Number
 
curAngle:Number
SetJointProperties()method 
public function SetJointProperties(other:PrismaticJoint):voidParameters
other:PrismaticJoint
ToString()method 
public override function ToString():String

Returns
String
Update()method 
public override function Update(world:b2World):voidParameters
world:b2World