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.
npx skills add https://github.com/facebook/immersive-web-sdk --skill iwsdk-physics
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.
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.
Read the one the task needs; each is complete on its own.
PhysicsSystem config, scene JSON → references/tuning-and-config.mdObjects fall through the floor:
PhysicsShape and PhysicsBody with state: PhysicsState.StaticAuto or ConvexHull is selected for the PhysicsShape of static objects, try to change into TriMeshphysics: true is set in iwsdk.config.json world featuresObjects don't move:
state is PhysicsState.Dynamic (not Static or Kinematic)gravityFactor is > 0PhysicsShape and PhysicsBody are added (both are required)Objects are too bouncy or slide too much:
restitution to reduce bouncing (0 = no bounce)friction to reduce sliding (0.8+ for grippy surfaces)Objects move too slowly or feel sluggish:
linearDamping (0 = no air resistance)density is not too high (high density = heavy = resists force)Poor frame rate with many physics objects:
TriMesh only for static objectsAuto to avoid detection overheadGrabbed object doesn't follow hand:
grabbing: true in featuresRayInteractable and a grabbable component (OneHandGrabbable, TwoHandsGrabbable, or DistanceGrabbable)PhysicsManipulation has no effect:
PhysicsBody with an active engine body (_engineBody != 0)PhysicsState.Static for all non-moving objects; static bodies have zero simulation costAuto detection overheadIntegration 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.
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
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.
Build and distribute Expo development clients locally or via TestFlight
Use when you have a written implementation plan to execute in a separate session with review checkpoints
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.
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.
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.
Take facebook/iwsdk-physics from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
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.