示例#1
0
        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();
        }
示例#2
0
        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();
        }