[MP] SpawnActor : Transform values rounded on client

Hello,

When Spawning an actor on the server, the transform values are different on the client.
Looks like the Location and Scale are rounded. Rotation is not but slightly different.

See the screenshot :

It’s not a problem in most cases I guess, but when the game rely on precision, it’s really bad.
Is there any options to know about to prevent that from happening ?

Thanks

Hey Genova,

This is expected. The reasoning is because clients are just simulations, which means you won’t always get the exact values that you set to spawn the object. If you’re concerned about precision, I’d recommend trying to use whole values that you won’t have to worry about getting rounded.

Here’s a page I found with more information regarding this: https://wiki.beyondunreal.com/Everything_you_ever_wanted_to_know_about_replication_(but_were_afraid_to_ask)#Value_compression

Let me know if you have any further questions regarding this.

Have a great day

Hey Sean,

Thanks for the answer and the link, looks like a very insightful read.
I can’t really use wholes values, as they are customized settings set by the players, and I want them to have a precise control.
Anyway I just have to reapply the proper scale once spawned. It’s dirty but at least it’s not blocking.

Thanks