PrismaticJoint constructor

PrismaticJoint(
  1. IWorldPool argWorld,
  2. PrismaticJointDef def
)

Implementation

PrismaticJoint(IWorldPool argWorld, PrismaticJointDef def)
    : _localAnchorA = new Vector2.copy(def.localAnchorA),
      _localAnchorB = new Vector2.copy(def.localAnchorB),
      _localXAxisA = new Vector2.copy(def.localAxisA)..normalize(),
      _localYAxisA = new Vector2.zero(),
      super(argWorld, def) {
  _localXAxisA.scaleOrthogonalInto(1.0, _localYAxisA);
  _referenceAngle = def.referenceAngle;

  _lowerTranslation = def.lowerTranslation;
  _upperTranslation = def.upperTranslation;
  _maxMotorForce = def.maxMotorForce;
  _motorSpeed = def.motorSpeed;
  _enableLimit = def.enableLimit;
  _enableMotor = def.enableMotor;
  _limitState = LimitState.INACTIVE;
}