Skip to main content

Box Collider

Overview

Generates and attaches a primitive box collider component configuration onto the incoming mesh scene data hierarchy. It allows full control over position, dimensions, rotation, and trigger configuration, alongside an automatic mesh-fitting algorithm.


Inputs

NameTypeDescription
InputMeshDataIncoming mesh geometry data to receive the collider configuration.
CenterVector3The local offset position of the collider center relative to the geometry.
SizeVector3The dimensional scale (width, height, depth) of the box collider.
RotationVector3The rotation orientation angles (in degrees) applied to the box collider.
PaddingVector3Supplementary margin expansion added exclusively during automatic bounding calculations.
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 box collider component payload.

Parameters

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

Behavior Notes

  • Fit to Mesh Mechanics: When fitToMesh is toggled true, the node maps the input vertices into the custom orientation space of the collider. It computes an aligned bounding box where center and size parameters are overridden based on actual geometry limits, while retaining user-defined rotation matrices.
  • Padding Integration: The padding input field acts cumulatively with fitToMesh. It expands the dynamic calculated boundary dimensions, allowing comfortable clearance gaps around geometry bounds.