Add joint limits and motors to physics system#150
Merged
Conversation
Extend revolute joints with angle limits and optional motors, and distance joints with min/max length limits. This enables constrained hinges (e.g. door stops, elbow joints) and motor-driven rotation (e.g. wheels, powered mechanisms). - JointMotor struct drives revolute joints toward a target angular velocity - Distance limits define a free range; no correction within [min, max] - Angle limits clamp revolute rotation via position-level correction - solve() now receives rotations for angle-limit computation - solve_velocity() applies clamped motor impulses per timestep - Builder methods: with_angle_limits, with_motor, with_distance_limits - 16 unit tests covering limits, motors, convergence, and builder panics Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying euca-engine with
|
| Latest commit: |
4d5e87f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bee57643.euca-engine.pages.dev |
| Branch Preview URL: | https://worktree-agent-ae9d1bf9.euca-engine.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
JointMotorfor driving rotation toward a target angular velocitysolve_velocity()for motor impulse application,has_motor()for efficient filteringdtand rotation data through the solver call chain insystems.rsTest plan
cargo test -p euca-physics --lib joints::tests)cargo test --workspace-- 0 failures)cargo clippy --workspace -- -D warningscleancargo fmt --all -- --checkclean🤖 Generated with Claude Code