Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

ForceMode2D

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.