phx-scene-basics

Construct and run 3D rigid-body physics scenes in MATLAB.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you create, visualize, simulate, and verify 3D rigid-body physics scenes in MATLAB without manually managing Bullet engine integration, graphics setup, or simulation lifecycles.

Core Features & Use Cases

  • Scene Construction: Create phx.Body objects, attach built-in or imported geometry, configure poses, materials, mass, inertia, friction, and collision envelopes.
  • Assemblies and Imports: Build arenas, chains, and scatter fields, or import URDF, OBJ, STL, and PLY models into PHX scenes.
  • Simulation and Visualization: Display scenes in the interactive PHX viewer or plain MATLAB axes, step simulations with controlled timesteps, and run them headlessly for batch experiments.
  • Use Case: Create a static arena, drop dynamically simulated bodies into it, run a stable physics loop, and inspect their resulting motion in MATLAB.

Quick Start

Use the phx-scene-basics skill to create a PHX viewer scene with a static ground body, a falling dynamic body, and a one-second simulation.

Frequently Asked Questions about phx-scene-basics

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

FAQPage Schema
How do I build 3D rigid-body physics scenes in MATLAB without managing the Bullet engine directly?

You can build 3D rigid-body physics scenes in MATLAB by creating phx.Body objects, configuring mass and friction, and letting the PHX toolbox handle Bullet engine integration and simulation lifecycles automatically.

Can I import STL, OBJ, PLY, or URDF models into a MATLAB physics simulation?

Yes, you can import STL, OBJ, PLY, and URDF models into MATLAB physics simulations as geometry attachments for phx.Body objects, allowing you to build prefab assemblies or complex rigid-body scenes.

What is headless execution for batch physics experiments in MATLAB?

Headless execution runs rigid-body physics simulations without interactive viewers, enabling batch experiments with controlled timesteps to inspect resulting body motion programmatically in MATLAB.

Do I need a specific toolbox to run rigid-body physics simulations in MATLAB?

Yes, you need the installed PHX MATLAB toolbox with its phx.engine.io Bullet gateway to construct, visualize, and step 3D rigid-body physics scenes without manual engine management.

How do I visualize and step a 3D physics simulation in MATLAB axes?

You can visualize 3D physics simulations using the interactive PHX viewer or plain MATLAB axes, then step the rigid-body simulation with controlled timesteps to observe dynamic body motion.

Why use a dedicated MATLAB wrapper instead of manually configuring the Bullet engine for scene construction?

Using a dedicated wrapper removes the need for manual Bullet engine, graphics, or simulation lifecycle management, streamlining scene construction, mesh import, and headless batch execution.