void Capture(ref aeXformData dst)
            {
                var src = m_target;

                dst.visibility = src.gameObject.activeSelf;
                dst.inherits   = m_inherits;
                if (m_invertForward)
                {
                    src.forward = src.forward * -1.0f;
                }
                if (m_inherits)
                {
                    dst.translation = m_capturePosition ? src.localPosition : Vector3.zero;
                    dst.rotation    = m_captureRotation ? src.localRotation : Quaternion.identity;
                    dst.scale       = m_captureScale ? src.localScale : Vector3.one;
                }
                else
                {
                    dst.translation = m_capturePosition ? src.position : Vector3.zero;
                    dst.rotation    = m_captureRotation ? src.rotation : Quaternion.identity;
                    dst.scale       = m_captureScale ? src.lossyScale : Vector3.one;
                }
                if (m_invertForward)
                {
                    src.forward = src.forward * -1.0f;
                }
            }
Exemplo n.º 2
0
 [DllImport("abci")] static extern void aeXformWriteSample(IntPtr self, ref aeXformData data);
Exemplo n.º 3
0
 public void WriteSample(ref aeXformData data)
 {
     aeXformWriteSample(self, ref data);
 }