phx-constraints-forces

Connect and actuate PHX rigid bodies with joints, springs, and forces.

7|Updated Jun 25, 2026
One-click install
npx skills add https://github.com/Humusoft/phx --skill phx-constraints-forces
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phx-constraints-forces
Source: https://github.com/Humusoft/phx/tree/main/.claude/skills/phx-constraints-forces
Command: npx skills add https://github.com/Humusoft/phx --skill phx-constraints-forces

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you connect, actuate, and control PHX rigid bodies without manually implementing complex constraint, force, spring, rope, or simulation-loop logic.

Core Features & Use Cases

  • Jointed Mechanisms: Create and configure fixed, bushing, revolute, prismatic, cylindrical, spherical, gear, and generic joints with local frames, limits, reaction loads, and collision behavior.
  • Forces and Compliant Elements: Add springs, ropes, thrusters, buoyancy, resistance, dipole and monopole fields, or one-step body forces and torques.
  • Simulation Control: Drive parameters with phx.Script, implement per-substep control laws with phx.Function, or build closed-loop read-state and actuator loops for vehicles, pendulums, robotic mechanisms, and floating bodies.

Quick Start

Ask the PHX constraints and forces skill to build a jointed mechanism with the required actuators, limits, force elements, and per-step controller.

Frequently Asked Questions about phx-constraints-forces

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and actuate PHX rigid body joints in MATLAB simulations?

You can connect and actuate PHX rigid bodies by configuring fixed, revolute, prismatic, cylindrical, spherical, or gear joints with local frames, limits, and collision behavior. This skill handles the constraint logic so you can build jointed mechanisms without manual implementation.

What compliant force elements are available for rigid-body dynamics simulations?

Available compliant force elements include springs, ropes, thrusters, buoyancy, resistance, dipole and monopole fields, and one-step body forces and torques for modeling complex physical interactions in rigid-body dynamics.

Can I implement closed-loop force control for vehicles and robotic mechanisms?

Yes, you can build closed-loop read-state and actuator loops for vehicles, pendulums, and robotic mechanisms. The skill supports driving parameters with scripts and implementing per-substep control laws via function callbacks for stable simulation stepping.

How do I configure joint limits and reaction loads in PHX simulations?

Joint limits and reaction loads are configured by defining local frames and degrees-of-freedom constraints for each joint type. You can specify fixed, bushing, revolute, prismatic, or spherical joints with appropriate collision behavior and runtime parameter updates.

What is the best way to ensure stable simulation stepping for jointed chains?

Stable simulation stepping for jointed chains is achieved by using per-substep callbacks and function-based control laws. This skill allows you to apply forces, update runtime parameters, and implement compliant mechanisms without manually writing the simulation loop logic.