Skip to main content

Sphere Collider Node

Overview

Generates and attaches a primitive sphere collider component configuration onto the incoming mesh scene data hierarchy. It provides options for manual configuration of the center point and radius, alongside an automatic mesh-fitting calculation.


Inputs

NameTypeDescription
InputMeshDataIncoming mesh geometry data to receive the collider configuration.
CenterVector3The local offset position of the collider center relative to the geometry.
RadiusfloatThe radius of the sphere collider.
Radius PaddingfloatMargin added to expand the radius exclusively during automatic mesh-fitting.
Is TriggerboolDefines whether the collider functions as an un-physical trigger boundary or a solid barrier.

Outputs

NameTypeDescription
OutputMeshDataThe updated mesh scene data hierarchy embedded with the defined sphere collider component payload.

Parameters

NameTypeDescription
Fit To MeshboolIf active, explicitly bypasses fixed manual dimensions, calculating optimal center boundaries and radius directly from the vertices of the incoming mesh.

Behavior Notes

  • Fit to Mesh Mechanics: When fitToMesh is toggled true, the node scans all vertices in the Input mesh to determine its axis-aligned bounding box. It calculates the Center as the geometric midpoint of these boundaries, and sets the Radius based on half of the mesh's single largest dimensional axis (width, height, or depth).
  • Padding Integration: The RadiusPadding input value accumulates dynamically on top of the calculated dimension when fitToMesh is true, providing an easy way to scale out the collision shell.