query.position_delta only rarely updates
Partner Rank:
3
Partner Team Reporting:
Everbloom Studios
Verification builds:
1.16.0.59
Summary:
query.position_delta only rarely updates. Most of the time it returns zero. Seems to update a little more often when the entity is moving up and down, but when walking on the ground nearly always returns zero.
Impact:
Makes us unable to reliably animate mobs depending on the direction they're moving.
In one of our map prototypes we need to rotate a mob in the direction they're moving without using the /teleport command, and we nearly achieve this by calculating the angle from the position delta, but sometimes fails and doesn't rotate the model at all.
Repro Steps:
- Join the provided world
- Leash the sheep and drag it around. It is scripted to scale to twice the size whenever the horizontal distance calculated with the x and z position delta exceeds 0.001
Observed Results:
The sheep is nearly always the normal size and very occasionally flashes with double the size. Happens slightly more often when the sheep is in the air.
Expected Results:
The sheep should almost always be twice the size when dragging it around
Screenshots/Videos attached: Yes/No
Yes
https://gfycat.com/UnfitUnknownHylaeosaurus
Regression Builds:
Unknown