Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SurfaceEffector2D.forceScale

Switch to Manual
public float forceScale;

Description

The scale of the impulse force applied while attempting to reach the surface speed.

0 stops any impulse force, whereas 1 uses the full impulse force.