Skip to content

Orientation

To make objects orient in the direction of travel, use orientationForce. This is also demonstrated in the attraction force demo above.

The parameter given to the force is the ‘interpolation amount’, which determines how quickly rotation happens.

const orientationForce = Forces.orientationForce(1);

The orientation force is a handy composite which applies the following forces in order: