Skip to content

feat: spring bones#169

Merged
RocioCM merged 26 commits intomasterfrom
feat/spring-bones
Apr 7, 2026
Merged

feat: spring bones#169
RocioCM merged 26 commits intomasterfrom
feat/spring-bones

Conversation

@RocioCM
Copy link
Copy Markdown
Member

@RocioCM RocioCM commented Apr 7, 2026

Summary

Copy of PR: #166

This pull request introduces support for spring bone physics in the preview controllers, primarily by updating dependencies and adding a physics controller for Unity, while clarifying that Babylon does not support spring bones (yet). The changes ensure that both Babylon and Unity preview controllers have a consistent interface, and Unity can now set spring bone parameters via a new method.

Spring bone physics integration:

  • Added a physicsController to the Babylon preview controller with a no-op setSpringBonesParams method, indicating that spring bones are not supported in Babylon. (src/lib/babylon/render.ts) [1] [2]
  • Added a new createPhysicsController function for Unity that implements setSpringBonesParams, sending the parameters to the Unity instance via JSBridge. (src/lib/unity/physics.ts, src/lib/unity/render.ts) [1] [2] [3]

Dependency update:

  • Updated the @dcl/schemas dependency in package.json to a DEV branch that includes spring bone support until merged (package.json)

Related PRs:

Tasks

  • When schemas PR is merged & released, install the new @dcl/schemas version.

daniele-dcl and others added 26 commits March 10, 2026 14:12
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
wearable-preview Ready Ready Preview, Comment Apr 7, 2026 5:47pm

Request Review

@RocioCM RocioCM merged commit cf09103 into master Apr 7, 2026
3 checks passed
@RocioCM RocioCM deleted the feat/spring-bones branch April 7, 2026 18:04
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.

3 participants