Class Cloth.CollisionSettings
Cloth response to collisions settings.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class CollisionSettings : ValueType
Fields
CollisionThickness
Additional thickness of the simulated cloth to prevent intersections with nearby colliders.
Declaration
[Limit(0F, 3.40282347E+38F, 1F)]
public float CollisionThickness
Field Value
System.Single
|
ContinuousCollisionDetection
Enables Continuous Collision Detection (CCD) that improves collision by computing the time of impact between cloth particles and colliders. The increase in quality can impact performance.
Declaration
public bool ContinuousCollisionDetection
Field Value
System.Boolean
|
Friction
Controls the amount of friction between cloth particles and colliders. 0: friction disabled.
Declaration
[Limit(0F, 3.40282347E+38F, 1F)]
public float Friction
Field Value
System.Single
|
MassScale
Controls how quickly cloth particle mass is increased during collisions. 0: mass scale disabled.
Declaration
[Limit(0F, 3.40282347E+38F, 1F)]
public float MassScale
Field Value
System.Single
|
SceneCollisions
Enables collisions with scene geometry (both dynamic and static). Disable this to improve performance of cloth that doesn't need to collide.
Declaration
public bool SceneCollisions
Field Value
System.Boolean
|
SelfCollisionDistance
The minimum distance that the colliding cloth particles must maintain from each other in meters. 0: self collision disabled.
Declaration
[Limit(0F, 3.40282347E+38F, 1F)]
public float SelfCollisionDistance
Field Value
System.Single
|
SelfCollisionStiffness
Stiffness for the self collision constraints. 0: self collision disabled.
Declaration
[Limit(0F, 3.40282347E+38F, 1F)]
public float SelfCollisionStiffness
Field Value
System.Single
|
Properties
Default
The default Cloth.CollisionSettings.
Declaration
public static Cloth.CollisionSettings Default { get; }
Property Value
Cloth.CollisionSettings
|