Add **Cloth** simulation with physics

This commit is contained in:
Wojtek Figat
2023-07-03 10:38:36 +02:00
parent 8818b3b07c
commit f81989a171
9 changed files with 1586 additions and 6 deletions

View File

@@ -14,6 +14,16 @@ public class Physics : EngineModule
/// </summary>
public static bool WithCooking = true;
/// <summary>
/// Enables using vehicles simulation.
/// </summary>
public static bool WithVehicle = true;
/// <summary>
/// Enables using cloth simulation.
/// </summary>
public static bool WithCloth = true;
/// <summary>
/// Enables using PhysX library. Can be overriden by SetupPhysicsBackend.
/// </summary>
@@ -42,6 +52,8 @@ public class Physics : EngineModule
if (WithPhysX)
{
options.PrivateDependencies.Add("PhysX");
if (WithCloth && options.Platform.Target != TargetPlatform.PS4) // TODO: build nvcloth for ps4 with vs2017
options.PrivateDependencies.Add("NvCloth");
}
else
{