Skip to content

Commit

Permalink
better manage complex collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Aug 24, 2021
1 parent e1e2ab2 commit 1c06499
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ UStaticMesh* FglTFRuntimeParser::LoadStaticMesh_Internal(TArray<TSharedRef<FJson
#endif
}

if (!StaticMesh->bAllowCPUAccess)
{
BodySetup->bNeverNeedsCookedCollisionData = true;
}

BodySetup->bMeshCollideAll = false;
BodySetup->CollisionTraceFlag = StaticMeshConfig.CollisionComplexity;

Expand Down

0 comments on commit 1c06499

Please sign in to comment.