UNPKG

playcanvas

Version:

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

33 lines (32 loc) 1.37 kB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); import { Quat } from "../../../core/math/quat.js"; import { Vec3 } from "../../../core/math/vec3.js"; class CollisionComponentData { constructor() { __publicField(this, "enabled", true); __publicField(this, "type", "box"); __publicField(this, "halfExtents", new Vec3(0.5, 0.5, 0.5)); __publicField(this, "linearOffset", new Vec3()); __publicField(this, "angularOffset", new Quat()); __publicField(this, "radius", 0.5); __publicField(this, "axis", 1); __publicField(this, "height", 2); __publicField(this, "convexHull", false); /** @type {Asset|number|null} */ __publicField(this, "asset", null); /** @type {Asset|number|null} */ __publicField(this, "renderAsset", null); __publicField(this, "checkVertexDuplicates", true); // Non-serialized properties __publicField(this, "shape", null); /** @type {Model|null} */ __publicField(this, "model", null); __publicField(this, "render", null); __publicField(this, "initialized", false); } } export { CollisionComponentData };