Component:RadialForce
More actions
The RadialForce component makes particles attracted or repelled from a point in 3D space when they get closer or further away. The gradient for the force does not cut off at MinDistance and/or MaxDistance. instead the gradient continues into infinity at the value it was when it hits these values. The Force determines the distance truely if MinDistance is at 0 and MaxDistance is at infinity.
This component is part of the Photon Dust system made by Frooxius.
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. |
Force
|
Float | How much force this component exerts on particles in a system. |
Mode
|
RadialForceMode | How to determine how the force is calculated. |
MinDistance
|
Float | The minimum distance for the force gradient, aka force gradient start point, the gradient does not stop here. |
MaxDistance
|
Float | The maximum distance for the force gradient, aka force gradient start point, the gradient does not stop here. |
MinForce
|
Float | how much force should be applied at MinDistance modified by Force.
|
MaxForce
|
Float | how much force should be applied at MaxDistance modified by Force.
|
OverrideForceSpace
|
direct RootSpace | The space to calculate this component's values in. The values get converted to the particle system's space. |
Center
|
Float3 | The center point of the force point. |
Usage
Attach to a slot, add to the list of modules in a Component:ParticleSystem, and adjust the values to make the desired effect from this component.
The 0,0,0 point of RootSpace is where where the 'attraction' point is. OverrideForceSpace allows changing the new 'center' and defaults to the slot the component is attached to.
Positive values of Force push particles away, negative values them towards draw towards that point.
Examples
Can be used for orbits, moving particles via a user's hands, and for many other effects.