#KCC on server-authorative system

1 messages · Page 1 of 1 (latest)

stable wren
#

im making an fps game that handles its physic on the server side, i recently switched to Kinematic Character Controller but i hit a wall. Network Transform (component) cant sync the position of the player because KCC doesnt allow gameobj transform writing, basically locking the player in place on client side.

What are my options here? if i were to add client side movement that would, i assume, cause desync eventually.

Any help is appreciated

balmy lagoon
#

Pretty sure you just have to disable the KCC on clients

stable wren
#

yeah makes sense 🤔

stable wren
#

when i disable the kcc on client it still locks itself whilst on server side it moves

naive siren
#

Make sure you don't have anything else setting the transform client side

stable wren
#

there is none, only the KCC is influencing

#

my movement scripts only reads input locally
send a command to the server with the input vector / yaw for cam rotation

#

i would think that, the network transform syncs the position and rotation on the client when the client KCC is disabled

#

but it doesnt

#

the server character (who is able to freely move) also doesnt sync on the clients

#

Network transform is set to 'server to client' so thats not it

naive siren
#

oh you are using Mirror. I don't think the Network Transform works any different from NGO. But make sure that its set to server authority

naive siren