Making MoveTo() rotation smoother?

Okay, so I have been toying around with MoveTo() for a whole day now, is there any way to make the rotations smoother? Since it stutters only while looking around? Is there something I’m missing?

(Changed the member function made by Conan Reis.)

(Prop:creative_prop).MoveToPlayer(FortChar:fort_character, Offset:vector3)<suspends>:void =
        TargetRotation := FortChar.GetViewRotation()
        loop:
            TargetTransform := FortChar.GetTransform()
            TargetPos := TargetTransform.Translation

            Arrived := race:
                block:
                    MovePos := TargetPos + TargetTransform.Rotation.RotateVector(Offset)
                    var TimeToMove : float = 0.30
                    Prop.MoveTo(MovePos, TargetRotation, TimeToMove)
                    true
                block:
                    Sleep(0.1)
                    false
            if(Arrived?):
                break

I had the same issue and I managed to attach the stuttering prop to this clock and for whatever reason it is no longer stuttering. So you attach the prop you want player to see to this clock and reference the clock in the verse device and it should work fine. At least to me.
image

Edit: off-topic but I’m noticing that you assign race to a variable. Is it working pretty fine to you? Assigning race to a variable cause network disconnection for me. It has been always like that for months

1 Like

Aha!! I have had some Network Disconnection issues triggering other Cinematic Sequencers while i have a Camera following the player, might have been my race with the variable! :open_mouth:

Just tested that out. It turns out all the time that returning multiple types of data is what causing this issue. This will lead the race variable’s data type to be :comparable. In your case, you are returning one data type which is :logic so you are fine. I also tried returning :int and it worked pretty fine.

1 Like

So, I’m testing the clock now, and I’m stuck in a spinning loop now! lol. But at least the MoveTo looks smoother than ever!