#Bullet Visual dilemma

1 messages · Page 1 of 1 (latest)

willow estuary
#

I have a gun, currently it creates a visual bullet on the client to make it more responsive for if done on the server the bullet will be delayed cause of latency. The thing is, I have to raycast on the server for it to deal damage properly but that means the bullet wont necesserily show the correct impact so should the visual stay on the client or be moved to the server?

Yellow - Client
Red - Server

#

^ problem summed up

digital briar
#

just do both right

tall yew
#

he's really not wrong

#

if you want it to look fine but still do impact logic

#

just use the same raycast logic as the server

#

..minus all damage shit and whatnot, purely a trajectory basis