示例#1
0
 public static void SetOrientation(this TgcObb obb, Matrix rotation)
 {
     obb.SetOrientation(
         new Vector3(rotation.M11, rotation.M12, rotation.M13),
         new Vector3(rotation.M21, rotation.M22, rotation.M23),
         new Vector3(rotation.M31, rotation.M32, rotation.M33)
         );
 }
示例#2
0
 public ObbCollider()
     : this(new TgcObb() { Extents = Item.DefaultScale })
 {
     Obb.SetOrientation();
 }
示例#3
0
        public static void SetOrientation(this TgcObb obb)
        {
            var e = _RotationEmpty;

            obb.SetOrientation(e[0], e[1], e[2]);
        }
示例#4
0
 public static void SetOrientation(this TgcObb obb, Vector3 rotation)
 {
     obb.SetOrientation(Matrix.RotationYawPitchRoll(rotation.Y, rotation.X, rotation.Z));
 }