Physics class contains a number of recommended configurations for physics animations.

Summary

Constants

const Float

Damping ratio for a very bouncy spring.

Cmn
const Float

Damping ratio for a spring with low bounciness.

Cmn
const Float

Damping ratio for a medium bouncy spring.

Cmn
const Float

Damping ratio for a spring with no bounciness.

Cmn
const Float

Default cutoff for rounding off physics based animations

Cmn
const Float

Stiffness constant for extremely stiff spring

Cmn
const Float
StiffnessLow = 200.0f

Stiffness constant for a spring with low stiffness.

Cmn
const Float
StiffnessMedium = 1500.0f

Stiffness constant for medium stiff spring.

Cmn
const Float

Stiffness constant for medium-low stiff spring.

Cmn
const Float

Stiffness constant for a spring with very low stiffness.

Cmn

Constants

DampingRatioHighBouncy

const val DampingRatioHighBouncy = 0.2f: Float

Damping ratio for a very bouncy spring. Note for under-damped springs (i.e. damping ratio < 1), the lower the damping ratio, the more bouncy the spring.

DampingRatioLowBouncy

const val DampingRatioLowBouncy = 0.75f: Float

Damping ratio for a spring with low bounciness. Note for under-damped springs (i.e. damping ratio < 1), the lower the damping ratio, the higher the bounciness.

DampingRatioMediumBouncy

const val DampingRatioMediumBouncy = 0.5f: Float

Damping ratio for a medium bouncy spring. This is also the default damping ratio for spring force. Note for under-damped springs (i.e. damping ratio < 1), the lower the damping ratio, the more bouncy the spring.

DampingRatioNoBouncy

const val DampingRatioNoBouncy = 1.0f: Float

Damping ratio for a spring with no bounciness. This damping ratio will create a critically damped spring that returns to equilibrium within the shortest amount of time without oscillating.

DefaultDisplacementThreshold

const val DefaultDisplacementThreshold = 0.01f: Float

Default cutoff for rounding off physics based animations

StiffnessHigh

const val StiffnessHighFloat

Stiffness constant for extremely stiff spring

StiffnessLow

const val StiffnessLow = 200.0f: Float

Stiffness constant for a spring with low stiffness.

StiffnessMedium

const val StiffnessMedium = 1500.0f: Float

Stiffness constant for medium stiff spring. This is the default stiffness for spring force.

StiffnessMediumLow

const val StiffnessMediumLow = 400.0f: Float

Stiffness constant for medium-low stiff spring. This is the default stiffness for springs used in enter/exit transitions.

StiffnessVeryLow

const val StiffnessVeryLow = 50.0f: Float

Stiffness constant for a spring with very low stiffness.