02 External Forces

This sample demonstrates how you can apply external forces to the simulation.

The base AccelerationModifier applies a constant acceleration every frame. It can be used for fixed forces like gravity or you can have another script change its Acceleration vector whenever you want.

The WindModifier used in this sample inherits from AccelerationModifier to add a Randomization factor to the acceleration as well as the ability to apply temporary gusts in another direction.