Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public Bone(Astra.JointType parentJointType, Astra.JointType endJointType)
 {
     ParentJointType = parentJointType;
     EndJointType    = endJointType;
 }
Exemplo n.º 3
0
 private static Astra.Joint FindJoint(Astra.Body body, Astra.JointType jointType)
 => body.Joints.FirstOrDefault(j => j.Type == jointType);
Exemplo n.º 4
0
 public Bone(Astra.JointType startJoint, Astra.JointType endJoint)
 {
     _startJoint = startJoint;
     _endJoint   = endJoint;
 }