Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsChainDefinition

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A PhysicsChain definition used to specify the chain of vertices that will produce multiple ChainSegmentGeometry shape types. Additionally, non-geometric properties can be specified here.

Static Properties

Property Description
defaultDefinition Get a default PhysicsChain definition.

Properties

Property Description
contactFilter The contact filter used to control which contacts this shape can participate in.
isLoop Indicates a closed chain formed by connecting the first and last vertices specified.
surfaceMaterial The surface material for the shape comprising of many properties such as friciton, bounciness, rolling resistance etc.
triggerEvents Controls whether this chain produces trigger events which can be retrieved after the simulation has completed. This applies to triggers and non-triggers alike.

Constructors

Constructor Description
PhysicsChainDefinition Create a default PhysicsChain definition.