Add NvCloth for Linux

This commit is contained in:
Wojtek Figat
2023-07-17 18:22:40 +02:00
parent de8613e223
commit 5012d4432e
4 changed files with 14 additions and 0 deletions

View File

@@ -724,6 +724,7 @@ void Cloth::CalculateInvMasses(Array<float>& invMasses)
void Cloth::OnPreUpdate()
{
#if WITH_CLOTH
// Get current skinned mesh pose for the simulation of the non-kinematic vertices
if (auto* animatedModel = Cast<AnimatedModel>(GetParent()))
{
@@ -806,6 +807,7 @@ void Cloth::OnPreUpdate()
PhysicsBackend::UnlockClothParticles(_cloth);
}
#endif
}
void Cloth::OnPostUpdate()