Describe the bug:
The position and rotation of entities on client side is wrong.
How do you cause this bug?
- List the steps
Attach this to an entity and see how the position in the console changes each print (it is rounded every second print)
local TestScript = {}
function TestScript:Init()
self:Schedule(function()
while true do
self:GetEntity():SetPosition(Vector.New(12.5, 12.5 ,12.5))
Wait()
end
end)
end
function TestScript:ClientInit()
self:Schedule(function()
while true do
print(self:GetEntity():GetPosition())
Wait(1/30)
end
end)
end
return TestScript
Your Crayta username:
Daigoro
1 Like
Hey there @Ya_shi_shi !
I have been attempting to replicate this on my side but i cannot seem to reproduce this issue.
Is it possible to provide me with some media by chance?
This would be greatly appreciated on my part to better understanding the situation.
Follow up -
I have still entered a ticket into our system.
I will follow up with any additional information you can provide. 
Media would be best here, the scripting was great and the steps were easy to follow 
Here is the requested media:
The console should not print anything else than “[Client] x=12.5 y=12.5 z=12.5”, but instead it prints “[Client] x=13 y=13 z=13” and “[Client] x=0 y=0 z=0”.
I added a blueprint that is called “Entity sync bug”.
Thanks to @Plasma, we managed to find a case, where this doesn’t occur.
It seems like the rounding issue only happens if the entity itself has no parent. If it has a parent, then it seems like the value is correct, but if it has no parent, then it alternates every 5 seconds between rounding and not rounding.
I would also like to add, that this rounding issue also happens for rotations, which is very impactful on big entities.