Add **Cloth** simulation with physics
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user