FDerivedDataNavCollisionCooker::FDerivedDataNavCollisionCooker(FName InFormat, UNavCollision* InInstance) : NavCollisionInstance(InInstance) , CollisionDataProvider( NULL ) , Format( InFormat ) { check(NavCollisionInstance != NULL); CollisionDataProvider = NavCollisionInstance->GetOuter(); DataGuid = NavCollisionInstance->GetGuid(); IInterface_CollisionDataProvider* CDP = Cast<IInterface_CollisionDataProvider>(CollisionDataProvider); if (CDP) { CDP->GetMeshId(MeshId); } }
FDerivedDataPhysXCooker::FDerivedDataPhysXCooker( FName InFormat, UBodySetup* InBodySetup ) : BodySetup( InBodySetup ) , CollisionDataProvider( NULL ) , Format( InFormat ) , Cooker( NULL ) { check( BodySetup != NULL ); CollisionDataProvider = BodySetup->GetOuter(); DataGuid = BodySetup->BodySetupGuid; bGenerateNormalMesh = BodySetup->bGenerateNonMirroredCollision; bGenerateMirroredMesh = BodySetup->bGenerateMirroredCollision; IInterface_CollisionDataProvider* CDP = Cast<IInterface_CollisionDataProvider>(CollisionDataProvider); if (CDP) { CDP->GetMeshId(MeshId); } InitCooker(); }