UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

25 lines (24 loc) 525 B
import { Quat } from "../../../core/math/quat.js"; import { Vec3 } from "../../../core/math/vec3.js"; class CollisionComponentData { enabled = true; type = "box"; halfExtents = new Vec3(0.5, 0.5, 0.5); linearOffset = new Vec3(); angularOffset = new Quat(); radius = 0.5; axis = 1; height = 2; convexHull = false; asset = null; renderAsset = null; checkVertexDuplicates = true; // Non-serialized properties shape = null; model = null; render = null; initialized = false; } export { CollisionComponentData };