In Obi, any collider can become a force zone. Particles inside the force zone will be applied force, acceleration or wind in the direction specified by the zone's type. They can also be used to modify the lifetime of emitted particles that go inside of them.
You can use force zones for many different things: as a tool to manipulate particles, to create wind effects, or even to cheaply simulate underwater behavior.
Add a ObiForceZone component to any ObiCollider in your scene to turn it into a force zone. The collider will now allow particles to go inside of it and be affected by the force zone.
This is how the ObiForceZone component inspector looks like:
There's 4 types of force zones:
There's 3 different ways for force zones to affect particles:
Intensity of the force/acceleration/wind inside this force zone. Negative values can be used, which will invert the direction of the force: directional zones with negative intensity will move particles towards the collider's back-facing direction (negative Z axis) and radial force zones with negative intensity will move particles away from the surface of the collider. In case of void zones, positive intensities will reduce the particle's lifetime while negative intensities will increase it.
Direction of the damping force applied to particles inside the force zone. It can be in the same direction as the force applied by the force zone, or in the direction towards the surface of the force zone.
Strength of the damping force applied to particles inside the force zone.
Distance from the surface of the force zone at which the intensity is fully affected by falloff, and hence zero.
Distance from the surface of the force zone at which intensity is not affected by falloff.
How fast the force zone intensity decays from max distance to min distance (see above).
Particles inside the force zone will be tinted this color. Tinting speed is controlled by the color's alpha value, and also modulated by the zone's falloff.
How much the force zone intensity randomly changes over time.
How fast the force zone intensity randomly changes over time.
Seed for pulse random number generation.