Add info |
fix |
||
(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
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.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
BoundedSource
|
direct RelayRef`1<IBounded> | The object to get Bounding box data from. |
Size
|
field drive of Float3 | The field to drive with the local space size of the bounding box of BoundedSource .
|
Center
|
field drive of Float3 | The field to drive with the local space center of the bounding box of BoundedSource .
|
Padding
|
Float3 | how much to add to the output of Size
|
Scale
|
Float3 | how much to multiply the output of Size
|
Usage
Attach to a slot and provide BoundedSource
. The output fields are best used to drive a Component:BoxCollider.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.