naturalSize property
Vector3
get
naturalSize
The shape's size before any scale, for an editor's outline:
size for a box, 2 × radius (and height) for the round ones.
Implementation
Vector3 get naturalSize => switch (shape) {
ColliderShape3D.box => Vector3.copy(size),
ColliderShape3D.sphere => Vector3(radius * 2, radius * 2, radius * 2),
ColliderShape3D.capsule ||
ColliderShape3D.cylinder => Vector3(radius * 2, height, radius * 2),
_ => Vector3(1, 1, 1),
};