@drawcall/physics-usd
v0.19.0
Published
USD Physics import and export for @drawcall/physics.
Readme
@drawcall/physics-usd
USD Physics import and export for @drawcall/physics scene objects. No simulation backend is needed to exchange scenes.
npm install three @drawcall/physics @drawcall/physics-usdimport { PhysicsUSDExporter, PhysicsUSDLoader } from "@drawcall/physics-usd";
const bytes = await new PhysicsUSDExporter().parseAsync(scene);
const { scene: imported, gravity } = await new PhysicsUSDLoader().parseAsync(
bytes,
);See the shipped physics-usd skill for importing scenes into simulations and choosing an export state. Types and doc comments describe the supported USD subset.
