Component:ValueSpatialVariablePartialDerivativeDriver: Difference between revisions
From Resonite Wiki
make intial stubby version |
m fix issue |
||
| (One intermediate revision by one other user not shown) | |||
| Line 8: | Line 8: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|DriveX|{{RootFieldType|FieldDrive`1|T}}|TypeAdv0=true| Field X to drive with the sampled variable. | |DriveX|{{RootFieldType|FieldDrive`1|T}}|TypeAdv0=true| Field X to drive with the sampled variable. | ||
| | |DriveY|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true| Field Y to drive with the sampled variable. | ||
| | |DriveZ|{{RootFieldType|FieldDrive`1|T}}|TypeAdv2=true| Field Z to drive with the sampled variable. | ||
|VariableName|String| the name of the variable to be sampling for. | |VariableName|String| the name of the variable to be sampling for. | ||
|Mode|ValueSpatialVariableMode| How to interpret the sampled values. | |Mode|ValueSpatialVariableMode| How to interpret the sampled values. | ||
Latest revision as of 20:32, 9 January 2026
Component image 
Value Spatial Variable Partial Derivative Driver`1 component as seen in the Scene Inspector

The Value Spatial Variable Driver`1 component samples from Spatial variables intersecting the slot it is on and gets a value.
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. Some components stop their functionality when this field is disabled, but some don't. |
DriveX
|
field drive of T | Field X to drive with the sampled variable. |
DriveY
|
field drive of T | Field Y to drive with the sampled variable. |
DriveZ
|
field drive of T | Field Z to drive with the sampled variable. |
VariableName
|
String | the name of the variable to be sampling for. |
Mode
|
ValueSpatialVariableMode | How to interpret the sampled values. |
DefaultValue
|
T | The value to default to when no value can be sampled. |
SamplingDistance
|
Float | This article or section is a stub. You can help the Resonite wiki by expanding it.
|
computeInLocalSpace
|
Bool | If the sampling distance will be scaled to the slots scale or revert to global 1,1,1 scale |
Usage
Attach to a slot and provide a fields to drive and a variable name. the slot this component is on acts as the position for sampling variable values and do some math.
This article or section is a stub. You can help the Resonite wiki by expanding it.
Examples
This article or section is a stub. You can help the Resonite wiki by expanding it.