Beispiel #1
0
        public virtual void MoveTo(JVector p_rotation, JVector p_position)
        {
            if (_body == null)
            {
                return;
            }

            _body.Orientation = JMatrix.CreateFromYawPitchRoll(p_rotation.Y, p_rotation.X, p_rotation.Z);
            _body.Position    = p_position;

            SetRotation(p_rotation, false);

            _boundingSphere.Center.X = p_position.X;
            _boundingSphere.Center.Y = p_position.Y;
            _boundingSphere.Center.Z = p_position.Z;
        }