0 votes
by
Is there a mechanism to add external forces to the vehicle such as wind? I'm looking at simulating a car driving through a strong cross-wind.

1 Answer

0 votes
by
selected by
 
Best answer

You can apply external forces to the vehicle's rigidbody with Rigidbody.AddForce() or Rigidbody.AddForceAtPosition() from FixedUpdate().

In Vehicle Physics Pro, you can access the vehicle's rigidbody from an add-on component like this:

public override void FixedUpdateVehicle ()
{
    vehicle.cachedRigidbody.AddForce(myCustomForce);
}
...