Contents

TimedForceFalloff

A type that modulates the force strength based on how long the force effect has run.

Declaration

struct TimedForceFalloff

Overview

Forces have the largest strength when the force effect starts to play and gradually decay to zero when approaching the given duration. The effect also stops playing when reaching the duration.

Similar to SpatialForceFalloff, rate controls how fast the force strength decays. You can set the rate to zero to have a force effect with no temporal falloff.

let noTimedFalloff = TimedFalloff(duration: 1, rate: 0)

Topics

Initializers

Instance Properties

See Also

Force effect constraints