Example #1
0
 // Has the GameObject or projector been configured differently or moved?
 bool IsDirty()
 {
     return(!_lastRotation.Approximately(transform.rotation) ||
            !_lastPosition.Approximately(transform.position) ||
            !_lastScale.Approximately(transform.lossyScale) ||
            !Mathf.Approximately(_lastDisplacement, m_displacement) ||
            _lastLayerMask != m_layerMask);
 }
 public bool Approximately(RigidTransform r)
 {
     if (!Rotation.Approximately(r.Rotation))
     {
         return(false);
     }
     if (!Translation.Approximately(r.Translation))
     {
         return(false);
     }
     return(true);
 }