Example #1
0
        public override Vector3[] GetSATNormals()
        {
            Vector3 ta, tb, tc;

            TransformPoints(out ta, out tb, out tc);
            return(new Vector3[] { VectorOperation.GetNormal(ta, tb, tc) });
        }
Example #2
0
        public void OnDrawGizmos()
        {
            Vector3 ta, tb, tc;

            TransformPoints(out ta, out tb, out tc);

            Gizmos.DrawLine(ta, tb);
            Gizmos.DrawLine(tb, tc);
            Gizmos.DrawLine(tc, ta);

            var g = VectorOperation.GetGravity(ta, tb, tc);

            Gizmos.DrawLine(g, g + VectorOperation.GetNormal(ta, tb, tc));
        }