private void SpawnRagdoll() { Vector3 vDir = _viewManager.Direction; var rd = new Ragdoll(this); rd.SetWorld(_viewManager.Position + vDir * 3f, Quaternion.CreateFromRotationMatrix(Matrix.CreateFromAxisAngle(Vector3.UnitY, _viewManager.Pitch) * Matrix.CreateFromAxisAngle(Vector3.UnitZ, _viewManager.Yaw))); #if WINDOWS rd.SetLinearVelocity(vDir * Program.Proxy.SpawnVelocity); #endif _physics.Add(rd); rd.Activate(); }