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) ); }
public ObbCollider() : this(new TgcObb() { Extents = Item.DefaultScale }) { Obb.SetOrientation(); }
public static void SetOrientation(this TgcObb obb) { var e = _RotationEmpty; obb.SetOrientation(e[0], e[1], e[2]); }
public static void SetOrientation(this TgcObb obb, Vector3 rotation) { obb.SetOrientation(Matrix.RotationYawPitchRoll(rotation.Y, rotation.X, rotation.Z)); }