public void _movePreviewProp(Vector3 translation, Quaternion rotation) { if (propFade != null) { propFade.changePosition(translation, rotation); } }
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; }
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; } }