mcpbeat Sign in

Iwsdk Physics Agent Skill

Guide for implementing physics in IWSDK projects. Use when adding physics simulation, configuring rigid bodies, collision shapes, applying forces, creating grabbable physics objects, or troubleshooting physics behavior.

6k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
361
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/facebook/immersive-web-sdk --skill iwsdk-physics

What comes with it

18 586 bytes besides the instruction
references/component-reference.md
references/tuning-and-config.md
references/workflows.md

The instruction itself

5 sections, as written by the author

IWSDK Physics System Guide

This skill provides the complete reference and workflow for implementing Havok-powered physics simulation in IWSDK applications. Physics is built on three ECS components (PhysicsBody, PhysicsShape, PhysicsManipulation) orchestrated by the PhysicsSystem.

Enabling Physics

Enable physics in iwsdk.config.json with the physics feature flag:

{
  "scene": "./public/scenes/physics.iwsdk.scene.json",
  "world": {
    "xr": { "mode": "vr" },
    "features": {
      "physics": true,
      "grabbing": true,
      "locomotion": true
    }
  }
}

Setting physics: true automatically registers PhysicsBody, PhysicsShape, PhysicsManipulation components and the PhysicsSystem at priority -2.

Only enable physics when needed. If no objects require dynamic simulation, omit it to avoid overhead.

Reference files

Read the one the task needs; each is complete on its own.

  • Component fields, enums and shape dimensions → references/component-reference.md
  • Workflows — dynamic bodies, static colliders, kinematic platforms, grabbables, forces, custom systems, a full playground example → references/workflows.md
  • Material tuning, system priority, PhysicsSystem config, scene JSON → references/tuning-and-config.md

Troubleshooting

Objects fall through the floor:

  • Ensure the floor entity has both PhysicsShape and PhysicsBody with state: PhysicsState.Static
  • Verify the shape type and dimensions match the visual geometry
  • If the Auto or ConvexHull is selected for the PhysicsShape of static objects, try to change into TriMesh
  • Check that physics: true is set in iwsdk.config.json world features

Objects don't move:

  • Confirm state is PhysicsState.Dynamic (not Static or Kinematic)
  • Check gravityFactor is > 0
  • Verify both PhysicsShape and PhysicsBody are added (both are required)

Objects are too bouncy or slide too much:

  • Lower restitution to reduce bouncing (0 = no bounce)
  • Increase friction to reduce sliding (0.8+ for grippy surfaces)

Objects move too slowly or feel sluggish:

  • Reduce linearDamping (0 = no air resistance)
  • Check density is not too high (high density = heavy = resists force)

Poor frame rate with many physics objects:

  • Use simpler shape types (Sphere/Box instead of ConvexHull/TriMesh)
  • Use TriMesh only for static objects
  • Explicitly set shape types instead of Auto to avoid detection overhead
  • Reduce the number of dynamic bodies; make non-essential objects static

Grabbed object doesn't follow hand:

  • Ensure grabbing: true in features
  • Verify the entity has RayInteractable and a grabbable component (OneHandGrabbable, TwoHandsGrabbable, or DistanceGrabbable)

PhysicsManipulation has no effect:

  • The entity must have a PhysicsBody with an active engine body (_engineBody != 0)
  • The component is auto-removed after one frame; re-add it for sustained effects
  • Force values may need to be larger; they are scaled by frame delta time

Performance Tips

  • Use primitive shapes (Sphere, Box, Cylinder) over ConvexHull/TriMesh whenever acceptable
  • Use PhysicsState.Static for all non-moving objects; static bodies have zero simulation cost
  • Explicitly set shape types in production; avoid Auto detection overhead
  • Minimize dynamic body count -- each dynamic body requires per-frame transform sync
  • Use damping to settle objects faster and reduce ongoing simulation work
  • TriMesh is for static only -- it is computationally expensive and should never be used on dynamic bodies

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take facebook/iwsdk-physics from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.