2019-12-26 14:45:42 -05:00
// Copyright Epic Games, Inc. All Rights Reserved.
2019-06-08 17:15:34 -04:00
# include "PhysicsInitialization.h"
# include "PhysXPublicCore.h"
# include "PhysicsPublicCore.h"
# include "PhysXSupportCore.h"
# include "Misc/CommandLine.h"
2022-06-01 06:59:18 -04:00
2019-06-08 17:15:34 -04:00
# include "Modules/ModuleManager.h"
2019-06-10 13:02:51 -04:00
# include "Misc/Paths.h"
2022-09-09 00:53:22 -04:00
# include "HAL/IConsoleManager.h"
2019-06-08 17:15:34 -04:00
# ifndef APEX_STATICALLY_LINKED
# define APEX_STATICALLY_LINKED 0
# endif
// CVars
TAutoConsoleVariable < float > CVarToleranceScaleLength (
TEXT ( " p.ToleranceScale_Length " ) ,
100.f ,
TEXT ( " The approximate size of objects in the simulation. Default: 100 " ) ,
ECVF_ReadOnly ) ;
TAutoConsoleVariable < float > CVarToleranceScaleSpeed (
TEXT ( " p.ToleranceScale_Speed " ) ,
1000.f ,
TEXT ( " The typical magnitude of velocities of objects in simulation. Default: 1000 " ) ,
ECVF_ReadOnly ) ;
static TAutoConsoleVariable < int32 > CVarUseUnifiedHeightfield (
TEXT ( " p.bUseUnifiedHeightfield " ) ,
1 ,
TEXT ( " Whether to use the PhysX unified heightfield. This feature of PhysX makes landscape collision consistent with triangle meshes but the thickness parameter is not supported for unified heightfields. 1 enables and 0 disables. Default: 1 " ) ,
ECVF_ReadOnly ) ;
bool InitGamePhysCore ( )
{
// If we're running with Chaos enabled, load its module
FModuleManager : : Get ( ) . LoadModule ( " Chaos " ) ;
2019-10-02 17:27:26 -04:00
2022-06-01 06:59:18 -04:00
# if WITH_ENGINE
2019-10-02 17:27:26 -04:00
// Loading this without Chaos gives warning, as no module depends on it.
2019-06-08 17:15:34 -04:00
FModuleManager : : Get ( ) . LoadModule ( " ChaosSolverEngine " ) ;
# endif
return true ;
}
void TermGamePhysCore ( )
{
2021-01-08 19:56:07 -04:00
}