Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

ClothSphereColliderPair.ClothSphereColliderPair

Switch to Manual
public ClothSphereColliderPair(a: SphereCollider)
public ClothSphereColliderPair(a: SphereCollider, b: SphereCollider)

Parameters

a The first SphereCollider of a ClothSphereColliderPair.
b The second SphereCollider of a ClothSphereColliderPair.

Description

Creates a ClothSphereColliderPair. If only one SphereCollider is given, the ClothSphereColliderPair will define a simple sphere. If two SphereColliders are given, the ClothSphereColliderPair defines a conic capsule shape, composed of the two spheres and the cone connecting the two.