コード例 #1
0
 internal void UpdateParticleClouds(Vector3 WorldPos)
 {
     if (volume != null)
     {
         Vector3 intendedPoint = this.CloudOverlay.Transform.InverseTransformPoint(WorldPos);
         intendedPoint.Normalize();
         volume.Update(intendedPoint);
     }
 }
コード例 #2
0
        public void PerformUpdate(Vector3 WorldPos)
        {
            timeDelta = Time.time - timeDelta;
            float timeRate   = TimeWarp.CurrentRate == 0 ? 1 : TimeWarp.CurrentRate;
            float timeOffset = timeDelta * timeRate;

            updateOffset(timeOffset);
            timeDelta = Time.time;
            Vector3 intendedPoint = VolumeParent.transform.InverseTransformPoint(WorldPos);

            Volume.Update(intendedPoint);
        }