Add PhysX and NvCloth to Web

This commit is contained in:
Wojtek Figat
2026-03-13 17:49:11 +01:00
parent a8e7faec3c
commit 6ae68bc6cc
22 changed files with 430 additions and 22 deletions

View File

@@ -39,12 +39,6 @@ public class Physics : EngineModule
{
base.Setup(options);
if (options.Platform.Target == TargetPlatform.Web) // TODO: build PhysX for Web
{
options.PrivateDefinitions.Add("COMPILE_WITH_EMPTY_PHYSICS");
return;
}
SetupPhysicsBackend(this, options);
if (WithCooking)
@@ -58,7 +52,7 @@ public class Physics : EngineModule
if (WithPhysX)
{
options.PrivateDependencies.Add("PhysX");
if (WithCloth && options.Platform.Target != TargetPlatform.PS4) // TODO: build nvcloth for ps4 with vs2017
if (WithCloth)
options.PrivateDependencies.Add("NvCloth");
}
else