src/collisions/src/collidable-factories.js
function createObbFromRenderableShape(params, physicsJob) {
  const halfRangeX = params.scale[0] / 2;
  const halfRangeY = params.scale[1] / 2;
  const halfRangeZ = params.scale[2] / 2;
  return new Obb(halfRangeX, halfRangeY, halfRangeZ, params.isStationary, physicsJob);
}
function createObbFromRenderableShape(params, physicsJob) {
  const halfRangeX = params.scale[0] / 2;
  const halfRangeY = params.scale[1] / 2;
  const halfRangeZ = params.scale[2] / 2;
  return new Obb(halfRangeX, halfRangeY, halfRangeZ, params.isStationary, physicsJob);
}
function createObbFromRenderableShape ( params , physicsJob ) { const halfRangeX = params . scale [ 0 ] / 2 ; const halfRangeY = params . scale [ 1 ] / 2 ; const halfRangeZ = params . scale [ 2 ] / 2 ; return new Obb ( halfRangeX , halfRangeY , halfRangeZ , params . isStationary , physicsJob ) ; }
This assumes the base RenderableShape has a side length of one unit.

@param {CollidableShapeConfig} params
@param {CollidablePhysicsJob} [physicsJob]
@returns {Collidable}
This assumes the base RenderableShape has a side length of one unit .