When I throw the ball actor, the ball shakes

I am making a golf game.
I made the ball move along a trajectory, but the ball vibrates while flying.
Trajectory information is contained in an Fvector TArray.

How can I fly without shaking?

If you physically simulate the ball, and use networking, then you need to make sure that the initial velocity is given on the server, and not also applied on the client.

However, this statement makes me think you’re not using physical bodies:

Trajectory information is contained in an Fvector TArray.

So, you probably have some code that reads this array, and tries to update the ball position. When you do this, you have to take over simulating the ball – turn off “simulates physics,” and then calculate and place the ball correctly each frame/tick.
If you don’t turn off physics, then the physics simulation will fight with your own calculation.

Thanks for your answer.

But simulate physics is turn off.
And also Enable gravity is turn off too.

Then it’s very likely that whatever code you’re using to calculate the trajectory, doesn’t work correctly.

Updating to a UE5 solved the problem.