(One intermediate revision by one other user not shown)
Line 12:
Line 12:
{{Table ComponentFields
{{Table ComponentFields
|BoundedSource|{{RootFieldType|RelayRef`1|[[Type:IBounded|IBounded]]}}|TypeAdv0=true| The object to get Bounding box data from.
|BoundedSource|{{RootFieldType|RelayRef`1|[[Type:IBounded|IBounded]]}}|TypeAdv0=true| The object to get Bounding box data from.
|Size|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv1=true| The field to drive with the local space size of the bounding box of <code>BoundedSource</code>.
|Size|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv1=true| The field to drive with the local space size of the bounding box of <code>BoundedSource</code>.
|Center|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv2=true|The field to drive with the local space center of the bounding box of <code>BoundedSource</code>.
|Center|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv2=true|The field to drive with the local space center of the bounding box of <code>BoundedSource</code>.
|Padding|Float3| how much to add to the output of <code>Size</code>
|Padding|Float3| how much to add to the output of <code>Size</code>
|Scale|Float3| how much to multiply the output of <code>Size</code>
|Scale|Float3| how much to multiply the output of <code>Size</code>
Latest revision as of 17:30, 17 December 2024
Component image
Bounding Box Driver component as seen in the Scene Inspector
The BoundingBoxDriver component is commonly used in Basic text objects to size the collider based on the text. This takes any IBounded and turns its Bounding box data into its local space center point and local space size. This is useful for auto generating the size and center of a Component:BoxCollider around a procedural mesh.