fix: rotate held sprites on the rightitem bone #43
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/pokebedrock-res!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hotfix/fossil-holder-pose"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cause
animation.item_holder.idlewritespokeb:item_holder_rot_*onto bonerootandpokeb:item_holder_scaleonto the same bone. The held sprite attaches torightitem(geometry rest[18, -11.8073, -9.5562]). Scale onrootinherits. Rotation onrootdoes not turn the sprite, which is why the fossil cleaner icon stayed upright after beh PR #815.There is no custom render controller.
controller.render.defaultdraws the empty geometry;enable_attachablesdraws the item onrightitem.Fix
animation.item_holder.held_bonewritespokeb:item_holder_item_rot_*straight ontorightitem. The client plays it only when one component is non-zero. Default 0 leaves the geometry rest pose, so potion and crate holders (they only set the root properties) stay as they are.Beh branch
hotfix/fossil-flat-posesets those properties to[-90, 0, 0]for the fossil cleaner.Do not release this commit. The message does not start with
v.Test
Needs an in-game look together with the beh branch. The go-test-bds viewer does not match Bedrock held-item rendering.
Desk review at
bdb83057. No blockers. The diff is small and matches the beh branchhotfix/fossil-flat-pose(171a8d0), which definespokeb:item_holder_item_rot_x/y/zas float, range [-360, 360], default 0,client_sync: true.Should-check
pokeb:item_holder_item_rot_*on every item holder. If res ships before the beh change is live, the client is querying properties the entity doesn't define, which tends to spam the content log. Ship them together, or beh first.fossilCleanerDisplay()calls[-90, 0, 0]the "absoluterightitemeuler". In-game, the fossil will sit at rest[18, -11.8073, -9.5562]plus[-90, 0, 0], not at exactly[-90, 0, 0]. If it looks slightly tilted, subtract the rest pose on the beh side (or fix the doc wording if additive was intended).Nits
held_bonegate inentity/item_holder.jsonisn't needed for correctness, since an all-zero rotation is a no-op. It's fine to keep it to skip the animation for potion and crate holders, but a short comment saying that's why would help the next reader.No open issues in this repo to link. In-game check with the beh branch is still the real test, as the PR body says.
Minecraft Model Preview (
bdb8305)Model Changes