989onan bot (talk | contribs) Automated: update Categories, SyncDelegates |
fix |
||
Line 31: | Line 31: | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Bounding Box Driver]] | [[Category:Components{{#translation:}}|Bounding Box Driver]] | ||
[[Category:Components:Transform:Drivers{{#translation:}}|Bounding Box Driver]] | [[Category:Components:Transform:Drivers{{#translation:}}|Bounding Box Driver]] |
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.