Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RigidbodyType2D

The physical behaviour type of the Rigidbody2D.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum RigidbodyType2D

Remarks

Controls the physical behaviour of a Rigidbody2D in how it should move, react to forces and interact with the rest of the physics simulation.
Additional Resources: Rigidbody2D.bodyType.

Fields

Value

Description

DynamicSets the Rigidbody2D to have dynamic behaviour.
KinematicSets the Rigidbody2D to have kinematic behaviour.
StaticSets the Rigidbody2D to have static behaviour.