getPosition method

List<Vector3> getPosition()

get the scaled position of the joint

Implementation

List<Vector3> getPosition() {
  Vector3 p1 = Vector3.copy(anchorPoint1)..scale(scale);
  Vector3 p2 = Vector3.copy(anchorPoint2)..scale(scale);
  return [p1, p2];
}