jointValue method

  1. @override
double jointValue(
  1. int joint
)
override

A hinge's angle (radians) or a slider's position (metres) — body A's, measured from body B (or the world) — the same quantity a position motor drives; 0 for other joints.

Implementation

@override
double jointValue(int joint) => _myJoint(joint) ? jj_joint_value(joint) : 0;