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.

Joint2D.enableCollision

public bool enableCollision;

Description

Should the two rigid bodies connected with this joint collide with each other?

See Also: Rigidbody2D class, connectedBody.