Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor (size: Vec3) {
super();
Vec3.multiplyScalar(this.halfExtent, size, 0.5);
this._shape = new CANNON.Box(this.halfExtent.clone());
}