query.bone_origin returns incorrect values
Partner Rank: 2
Partner Team Reporting: Noxcrew
Verification builds: 1.19.70.02
Summary:
query.bone_origin used on an entity with multiple geometries swapped between via render controller returns incorrect values for the three axis.
When using a single geometry only the Y value is incorrect, it has an offset and increasing coordinates return decreasing values
Impact:
Due to this incorrectly returning values, it cannot be used without modifying the output or at all, based on the situation required. This in turn affects our development of a piece of content and requires us to create laborious workarounds to function as intended, including hardcoding values rather than dynamically allowing them to work.
Repro Steps:
- Import the attached mcworld, you should log-in in front of 3 entities. If not summon "noxcrew.bone_origin"
- Using the F3 Debug "black bar" menus, observe the body, head, hat_target and tail_target variables in the animation editor debug window and the hat and tail values
- Compare the variable pivot values to the two geo files
- Change the centre entities model by standing on the plank block and typing the command `/event entity @e[type=noxcrew.bone_origin,c=1] noxcrew:set.variant_1`
- Observe again the values not change.
Observed Results:
The variable that is querying the bone origin returns incorrect values for the three axis when using the second geo
Expected Results:
The variable should return the values of the bone pivot described in the .geo file of the geometries currently being used, updates when the geo is changed and can be used via an animation
Notes:
The game also prints an error log saying it cannot find the second geometry even though visually you can see it is being pulled and used. This might be related but it is hard to say.
Similar issues are observed with query.bone_rotation, query.get_locator_offset and query.get_root_locator_offset