Download

jerky animation when using point and click with dedicated server

hello
i’m using character movement component, and have setup point and click movement with acceleration and deceleration
the problem is that when i use get velocity from my character actor, the velocity vector length output is weird.
it seems if i have 2 clients, the local client is buggy/jerky, but the remote one is correct as its speed values correlate with those of the server

my simple move to location results with following velocity values…

local client :0,0,0,17,0,34,19,56,38 <— note how the value is not progressing THIS IS THE PROBLEM
remote client: 0,10,20,30,40,52,63,76,87
dedicated server: 0,10,20,30,40,52,63,76,87

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 0.0
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 0.0
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 0.0

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 9.969802
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 0.0
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 10.0

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 19.914097
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 0.0
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 20.0

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 30.213436
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 17.126688
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 30.805843

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 40.529911
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 0.0
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 40.804413

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 52.334198
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 34.925442
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 52.430908

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 64.102745
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 19.133318
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 63.820061

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 76.168365
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 56.552197
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 76.026314

LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Server: 87.627312
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_0] Client 1: 38.37698
LogBlueprintUserMessages: [MyMixamoAnimBP1_C_1] Client 2: 87.418533

Hi Yun-Kun,
thank you for the answers. I’ve included some more blueprint images to make things more clear.

First how i handle movement in Player Controller. All i do is a function call to “Simple move to location” after a double click which points to the target location.

Secondly i have an image of the Character class and its CharacterMovement component. I’ve marked the modified properties which allow me to have both point and click and acceleration/deceleration of my character. The idea is that character moves to a point and click target destination but also accelerates and decelerates along the way.

To me it still seems very weird that the character moves ok on the remote client, but jerks and twitches on the local client.

Will provide acceleration/max speed in a moment…