public void _movePreviewProp(Vector3 translation, Quaternion rotation)
 {
     if (propFade != null)
     {
         propFade.changePosition(translation, rotation);
     }
 }
示例#2
0
        public override void update(float timelineTime, Clock clock)
        {
            float percentage = (timelineTime - StartTime) / Duration;

            if (percentage > 1.0f)
            {
                percentage = 1.0f;
            }
            propBehavior.changePosition(startTranslation.lerp(ref endTranslation, ref percentage), startRotation.slerp(ref endRotation, percentage, true));
            finished = timelineTime >= StartTime + Duration;
        }
示例#3
0
 public override void skipTo(float timelineTime)
 {
     if (timelineTime <= EndTime)
     {
         started(timelineTime, null);
     }
     else
     {
         propBehavior = PropSimObject.getElement(PropFactory.FadeBehaviorName) as PropFadeBehavior;
         propBehavior.changePosition(endTranslation, endRotation);
         finished = true;
     }
 }