Computes the local axis-aligned bounding box (AABB) centered at origin (0, 0, 0) for this shape, before any spatial node transformations are applied.
The calculated local-space AABB.
StaticboxFactory method to instantiate a box-shaped bounding volume.
Full dimension size. Can be a single scalar for cubes or a Vec3 specifying width, height, and depth.
A newly created box CollisionShape.
StaticsphereFactory method to instantiate a sphere-shaped bounding volume.
Radius dimension of the bounding sphere.
A newly created sphere CollisionShape.
Bounding half-extents (dimensions divided by two) along local X, Y, and Z axes.
Primarily utilized when shape type is "box".
Radius of the bounding sphere.
Primarily utilized when shape type is "sphere".
The specific bounding geometry type represented by this shape.
CollisionShape represents a bounding volume used for basic collision queries and overlap checks. Centered locally around its parent Node3D's origin, it provides local-space AABB bounds that are transformed into world-space when resolving intersections.