Example #1
0
        private void OnDrawGizmos()
        {
            if (DrawGizmos &&
                ATransform && BTransform && CTransform)
            {
                var state = new RotatorState_Cannon90_Z0(ATransform, BTransform, CTransform);

                Gizmos.color = Color.black;
                Gizmos.DrawLine(state.A, state.C);
                Gizmos.DrawLine(state.A, state.B);

                Gizmos.color = Color.green;
                Gizmos.DrawLine(state.A, state.C2);
                Gizmos.DrawLine(state.B, state.C2);
                Gizmos.DrawLine(state.C2, state.C);
                Gizmos.DrawLine(state.A, state.M);
            }
        }
Example #2
0
        private void Start()
        {
            var state = new RotatorState_Cannon90_Z0(ATransform, BTransform, CTransform);

            ATransform.Rotate(ATransform.up, state.Theta);
        }