Version: Unity 6.4 (6000.4)
LanguageEnglish
  • C#

PhysicsChainDefinition.isLoop

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

public bool isLoop;

Description

Indicates a closed chain formed by connecting the first and last vertices specified. When enabled, no ghost vertices should be defined in the ChainGeometry.vertices with all being used to define ChainSegmentGeometry with the ghost vertices being calculated automatically to force a closed loop. When disabled, the ChainGeometry.vertices should define ChainSegmentGeometry.ghost1 as the first vertex followed by at least two vertices or more defining the subsequent edges and finally a ChainSegmentGeometry.ghost2 vertex, therefore there must be at least 4 vertices.