예제 #1
0
 private void ResetAvatar(PhysicsCharacter physicsObject, PhysicsState physicsState, float direction)
 {
     physicsObject.Position = physicsState.Position;
     physicsObject.ForceSetPosition(physicsState.Position);
     physicsObject.Orientation        = physicsState.Rotation;
     physicsObject.RotationalVelocity = physicsState.AngularVelocity * direction;
     physicsObject.Velocity           = physicsState.LinearVelocity * direction;
     physicsObject.ForceSetVelocity(physicsState.LinearVelocity * direction);
     physicsObject.RequestPhysicsterseUpdate();
 }