예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 private BodyPosition(BodyPosition other)
 {
     Current  = other.Current;
     Velocity = other.Velocity;
     _mass    = other._mass;
     _massInv = other._massInv;
 }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="position"></param>
 /// <param name="rotation"></param>
 public void Deconstruct(out BodyPosition position, out BodyRotation rotation)
 {
     position = Position;
     rotation = Rotation;
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 private Body(Body other)
 {
     Position = other.Position?.Duplicate();
     Rotation = other.Rotation?.Duplicate();
 }
예제 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="position"></param>
 /// <param name="rotation"></param>
 public Body(BodyPosition position, BodyRotation rotation)
 {
     Position = position;
     Rotation = rotation;
 }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="position"></param>
 /// <param name="rotation"></param>
 public Body(Vector3d position, Quaterniond rotation)
 {
     Position = new BodyPosition(position);
     Rotation = new BodyRotation(rotation);
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="position"></param>
 public Body(Vector3d position)
 {
     Position = new BodyPosition(position);
     Rotation = null;
 }