Cleaning up NvCloth gem. Removed any reference to LmbrCentral and legacy renderer since now it uses Atom. (#154)

- Removed any usage of LmbCentral and legacy renderer from NvCloth gem.
- Cloth rule can only be added to Mesh groups, not allowed in Actor groups anymore.
- Removed ActorAssetHelper since actors now share the mesh model format and therefore they also use MeshAssetHelper.
- Updated NvCloth gem.json file with the fields from the template.
- Updated cloth chicken asset to not convert axis.
This commit is contained in:
Aaron Ruiz Mora
2021-04-20 15:38:26 +01:00
committed by GitHub
parent f5a28d3a41
commit 1256994696
22 changed files with 104 additions and 719 deletions
@@ -19,7 +19,6 @@
#include <Components/ClothComponentMesh/ClothComponentMesh.h>
#include <UnitTestHelper.h>
#include <CryRenderMeshStub.h>
#include <ActorHelper.h>
#include <Integration/Components/ActorComponent.h>
@@ -465,14 +464,15 @@ namespace UnitTest
AZ::ScriptTimePoint(AZStd::chrono::system_clock::now()));
}
/*
CryRenderMeshStub renderMesh(MeshVertices);
/*LmbrCentral::MeshModificationNotificationBus::Event(
LmbrCentral::MeshModificationNotificationBus::Event(
m_actorComponent->GetEntityId(),
&LmbrCentral::MeshModificationNotificationBus::Events::ModifyMesh,
LodLevel,
0,
&renderMesh);*/
&renderMesh);
const AZStd::vector<NvCloth::SimParticleFormat>& clothParticles = clothComponentMesh.GetRenderData().m_particles;
const AZStd::vector<Vec3>& renderMeshPositions = renderMesh.m_positions;
@@ -482,5 +482,6 @@ namespace UnitTest
{
EXPECT_THAT(LYVec3ToAZVec3(renderMeshPositions[i]), IsCloseTolerance(clothParticles[i].GetAsVector3(), Tolerance));
}
*/
}
} // namespace UnitTest