Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Removed in version 5.0.1p4
PlatformEffector2D.sideBounce has been deprecated. Use PlatformEffector2D.useSideBounce instead (UnityUpgradable).

PlatformEffector2D.sideBounce

Switch to Manual
public var sideBounce: bool;

Description

Whether bounce should be used on the platform sides or not.

This is useful to stop bouncing of a Collider2D when in contact with a vertical surface. The "sides" are defined as the edges perpendicular to the "top" surface(s) in local-space.