Skip to content

ShapeSphere3

Defined in: src/modules/collision-3d/shape-sphere3.ts:14

Sphere shape, 3D sibling of shape-circle.ts. Anchored on the entity’s Position3DDef as the sphere centre; the radius is a scalar in the same units as Position3DDef.

The field is named radius rather than r to match three.js Sphere.radius and Godot Sphere.radius; a consumer whose component currently says r renames on adoption.

radius: number

Defined in: src/modules/collision-3d/shape-sphere3.ts:15