예제 #1
0
        public void OnUpdate(float T)
        {
            Slot ruut = _rt.rootSlot.Target;

            position.InsertKeyFrame(ruut.GlobalPointToLocal(slot.GlobalPosition), T);
            rotation.InsertKeyFrame(ruut.GlobalRotationToLocal(slot.GlobalRotation), T);
            scale?.InsertKeyFrame(ruut.GlobalScaleToLocal(slot.GlobalScale), T);
        }
예제 #2
0
        public void OnUpdate(float T)
        {
            Slot ruut = _rt.rootSlot.Target;

            positionTrack?.InsertKeyFrame(ruut.GlobalPointToLocal(slot.Target?.GlobalPosition ?? float3.Zero), T);
            rotationTrack?.InsertKeyFrame(ruut.GlobalRotationToLocal(slot.Target?.GlobalRotation ?? floatQ.Identity), T);
            scaleTrack?.InsertKeyFrame(ruut.GlobalScaleToLocal(slot.Target?.GlobalScale ?? float3.Zero), T);
        }