Sync constraint anchor physics transform before attaching vertical constraint#476
Conversation
Deploying flockdev with
|
| Latest commit: |
949c8a3
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://774197b6.flockdev.pages.dev |
| Branch Preview URL: | https://codex-sync-physics-body-tran.flockdev.pages.dev |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Motivation
mesh.physics.addConstraint(...)to avoid misaligned constraints or jitter.Description
constraintBox.computeWorldMatrix(true)and only run the sync whenconstraintBox.physicsexists.Quaternion.Identity()if missing and setconstraintBox.physics.disablePreStep = falseto match other static-body patterns before syncing.constraintBox.physics.setTargetTransform(constraintBox.position, constraintBox.rotationQuaternion)prior to creating/adding thePhysics6DoFConstraint.Testing
node --check api/camera.jswhich succeeded.Codex Task
Summary by CodeRabbit