Class Cloth.SimulationSettings
Cloth simulation settings.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class SimulationSettings : ValueTypeFields
ComputeNormals
Enables automatic normal vectors computing for the cloth mesh, otherwise original mesh normals will be used.
Declaration
public bool ComputeNormalsField Value
| System.Boolean 
 | 
CullDistance
The maximum distance from the camera at which to run cloth simulation. Used to improve performance and skip updating too far clothes. The physics system might reduce the update rate for clothes far enough (eg. half this distance). 0 to disable any culling.
Declaration
public float CullDistanceField Value
| System.Single 
 | 
MaxParticleDistance
The maximum distance cloth particles can move from the original location (within local-space of the actor). Scaled by painted per-particle value (0-1) to restrict movement of certain particles.
Declaration
public float MaxParticleDistanceField Value
| System.Single 
 | 
SolverFrequency
Target cloth solver iterations per second. The executed number of iterations per second may vary dependent on many performance factors. However, at least one iteration per frame is solved regardless of the value set.
Declaration
public float SolverFrequencyField Value
| System.Single 
 | 
UpdateWhenOffscreen
If true, the cloth will be updated even when an actor cannot be seen by any camera. Otherwise, the cloth simulation will stop running when the actor is off-screen.
Declaration
public bool UpdateWhenOffscreenField Value
| System.Boolean 
 | 
WindVelocity
Wind velocity vector (direction and magnitude) in world coordinates. A greater magnitude applies a stronger wind force. Ensure that Air Drag and Air Lift coefficients are non-zero in order to apply wind force.
Declaration
public Vector3 WindVelocityField Value
| Vector3 
 | 
Properties
Default
The default Cloth.SimulationSettings.
Declaration
public static Cloth.SimulationSettings Default { get; }Property Value
| Cloth.SimulationSettings 
 |