Skip to main content
Glama
chrishayuk

Physics MCP Server

by chrishayuk

step_simulation

Advance physics simulations by specified timesteps to calculate positions, velocities, and collision states of rigid bodies.

Instructions

Step the simulation forward in time.

Advances the physics simulation by running the integrator for N steps. Returns the complete state of all bodies after stepping. Args: sim_id: Simulation ID steps: Number of timesteps to simulate. Default 1. Example: steps=600 with dt=0.016 = 9.6 seconds of simulation dt: Optional timestep override (seconds). If None, uses config default. Returns: SimulationStepResponse containing: - sim_id: Simulation identifier - time: Current simulation time in seconds - bodies: List of all body states with positions, velocities, contacts Tips for LLMs: - Each body state includes position, orientation (quaternion), velocities - contacts array shows active collisions with impulse magnitudes - For real-time preview: steps=1, call repeatedly - For final result: steps=1000+, call once - Large step counts may timeout - limit to ~10,000 steps per call Example: # Simulate 10 seconds at 60 FPS result = await step_simulation( sim_id=sim_id, steps=600 # 600 steps × 0.016s = 9.6s ) for body in result.bodies: print(f"{body.id}: position={body.position}")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sim_idYes
stepsNo
dtNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-physics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server