Example #1
0
 //This is called by the physics engine to update the transformation of Dynamic rigidbodies.
 private static void RigidBodySetWorldTransform(PhysicsElement element, Matrix physicsTransform)
 {
     if (element.BoneIndex == -1)
     {
         element.UpdateTransformationComponent(physicsTransform);
     }
     else
     {
         element.UpdateBoneTransformation(physicsTransform);
     }
 }
Example #2
0
 //This is called by the physics engine to update the transformation of Dynamic rigidbodies
 static void RigidBodySetWorldTransform(PhysicsElement element, Matrix physicsTransform)
 {
     element.UpdateTransformationComponent(physicsTransform);
 }