private static int FindJointIndex(Astra.Body body, Astra.JointType jointType) { for (int i = 0; i < body.Joints.Length; i++) { if (body.Joints[i].Type == jointType) { return(i); } } return(-1); }
public Bone(Astra.JointType parentJointType, Astra.JointType endJointType) { ParentJointType = parentJointType; EndJointType = endJointType; }
private static Astra.Joint FindJoint(Astra.Body body, Astra.JointType jointType) => body.Joints.FirstOrDefault(j => j.Type == jointType);
public Bone(Astra.JointType startJoint, Astra.JointType endJoint) { _startJoint = startJoint; _endJoint = endJoint; }