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

Script language

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

ForceMode2D

enumeration

Description

Option for how to apply a force using Rigidbody2D.AddForce.

Variables

ForceAdd a force to the Rigidbody2D, using its mass.
ImpulseAdd an instant force impulse to the rigidbody2D, using its mass.

Did you find this page useful? Please give it a rating: