Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Block-Force.md
2024-08-26 23:07:20 +03:00

1.9 KiB
Raw Blame History

Force

Menu Path : Force > Force

The Force Block applies the given force to particles. To do this, it changes the affected particles velocity.

Block compatibility

This Block is compatible with the following Contexts:

Block settings

Setting Type Description
Mode Enum The method this Block uses to apply a force to particles. The options are:
Absolute: Applies the force directly to the particles.
Relative: Applies the force in a way that causes the particles' velocity to tend towards the Velocity value. The speed at which they do this depends on the difference between the particles' velocity and the target Velocity. This transition is faster with a higher Drag value and a lower particle mass. This option is useful to simulate a flow, like wind, that particles follow without ever exceeding the target velocity.

Block properties

Input Type Description
Force Vector The force vector this Block applies to particles.
This property only appears if you set Mode to Absolute.
Velocity Vector The relative velocity that affected particles tend towards.
This property only appears if you set Mode to Relative.
Drag float The drag coefficient.
This property only appears if you set Mode to Relative.

Remarks

This Block only affects the particle position if you enable the Update Position setting in the Update Context.