Closed rehven closed 4 years ago
You should probably import it directly into the RMC instead of using the RMCProviderStaticMesh, afaik this is only meant to display static meshes with the RMC engine. Also you can't modify the collision mesh this way. Sidenote, v3 did also allow for complex collision.
Thanks for the advice. I've been looking through the example project yet I'm failing to fully understand the pipeline; can you point me in a general direction?
As for v3 and complex collision: I'm using RMC for a softbody simulation, combined with Oculus Rift to manually manipulate the softbody. I tried to enable complex collision but I could never get it to update whenever the mesh changed. I though v3 could only do simple collision shapes?
For this you should probably use the static provider (this is separate from static mesh provider), there's functions to convert an RMC over. The collision from renderable provider isn't meant for that, and the staticmesh provider already implements collision. There have been some bug fixes in collisionfromrenderable though.
If you need further assistance with this, it would be best to join the Discord server as I and others can help much more quickly there!
(Apologies for my markdown mess)
Two questions.
`URuntimeMeshProviderStaticMesh* MeshProvider = NewObject(this, TEXT("RuntimeMeshProvider-StaticMesh"));
MeshProvider->StaticMesh = VisualMesh->GetStaticMesh();
MeshProvider->ComplexCollisionLOD = 0;
MeshProvider->MaxLOD = 0;
The staticmesh has complex collision and it shows in the editor. But when I play, I don't see any collision on the runtime mesh. What am I missing?
RuntimeMesh->GetCurrentProviderProxy()->MarkSectionDirty(0, i); RuntimeMesh->GetCurrentProviderProxy()->MarkCollisionDirty();