Skip to content

feat: spring bones#60

Merged
alejandro-jimenez-dcl merged 16 commits into
mainfrom
feat/spring-bones
May 6, 2026
Merged

feat: spring bones#60
alejandro-jimenez-dcl merged 16 commits into
mainfrom
feat/spring-bones

Conversation

@alejandro-jimenez-dcl

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown

badge

Vercel Preview is ready!

Field Value
Preview https://aang-renderer-ne4g5wdd2-decentraland1.vercel.app
Commit a559401269c9c2ac42dfbff386057748dc46cfc7
Logs https://github.com/decentraland/aang-renderer/actions/runs/25434228933

alejandro-jimenez-dcl and others added 6 commits April 29, 2026 16:36
springBones now read from metadata.data.springBones (was top-level on
ActiveEntity) and models keyed by main-file hash (was filename). Vector3
converter accepts both array and object forms. Driver respects isRoot
flag and walks chains in skinned.bones order.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Switch from reparenting extras under the live avatar skeleton to keeping
spring bones in the wearable hierarchy and snapping the wearable's
intermediate parent to the live avatar bone every frame. Run the sim at
fixed 60 Hz sub-steps so authored stiffness/drag are framerate-invariant.
Restore captured rest rotations in UnregisterAll so re-registration after
emote/reload doesn't lock onto stale sim state. Match unity-explorer's
chain expansion: only isRoot entries seed chains and tagged children are
skipped during descendant collection.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Emotes that animate avatar bone scale (e.g. head-explode) now propagate
to spring-bone wearables. Previously scale was aligned only at chain
registration so the wearable parent kept its initial scale while the
avatar bone grew.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alejandro-jimenez-dcl
alejandro-jimenez-dcl marked this pull request as ready for review May 5, 2026 13:53

@lorenzo-ranciaffi lorenzo-ranciaffi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I just left a couple of comments 👍 The most important is the apparent leak, of course

Comment thread Assets/Scripts/Loading/AvatarLoader.cs
Comment thread Assets/Scripts/SpringBones/SpringBoneSimulator.cs Outdated
Comment thread Assets/Scripts/SpringBones/SpringBoneSimulator.cs Outdated
Comment thread Assets/Scripts/SpringBones/SpringBoneSimulator.cs Outdated
Comment thread Assets/Scripts/SpringBones/SpringBoneService.cs
Comment thread Assets/Scripts/SpringBones/SpringBoneParamsPayload.cs Outdated
@alejandro-jimenez-dcl
alejandro-jimenez-dcl merged commit 26f6430 into main May 6, 2026
5 checks passed
@charly-bg
charly-bg deleted the feat/spring-bones branch June 3, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants