Example #1
0
 public void SetPosition(IPhysicsObject physObj, Vector3 position)
 {
     if (objectIDs.ContainsKey(physObj))
     {
         MataliPhysicsObject mataliObj = objectIDs[physObj];
         mataliObj.MainWorldTransform.SetPosition(position);
         mataliObj.RecalculateMainTransform();
     }
 }
Example #2
0
 public void SetRotation(IPhysicsObject physObj, Quaternion rotation)
 {
     if (objectIDs.ContainsKey(physObj))
     {
         MataliPhysicsObject mataliObj = objectIDs[physObj];
         mataliObj.MainWorldTransform.SetRotation(Matrix.CreateFromQuaternion(rotation));
         mataliObj.RecalculateMainTransform();
     }
 }
Example #3
0
 public void SetTransform(IPhysicsObject physObj, Matrix transform)
 {
     if (objectIDs.ContainsKey(physObj))
     {
         MataliPhysicsObject mataliObj = objectIDs[physObj];
         mataliObj.MainWorldTransform.SetTransformMatrix(transform);
         mataliObj.RecalculateMainTransform();
     }
 }