示例#1
0
 //------------------------------------------------------
 // Player Property Controls
 //------------------------------------------------------
 public void togglePhysical()
 {
     _physical = !_physical;
     if (_physical)
     {
         _previous_position = _character.spatial.position;
         BulletSharp.Math.Vector3 temp_position = -EngineHelper.otk2bullet(_character.spatial.position);
         _physics_character.character.Warp(ref temp_position);
     }
     else
     {
         _character.spatial.position = -_physics_character.getPosition();
         _camera.resetSmoothMovement();
     }
 }