Merge branch 'Tryibion-phyx-ed'
This commit is contained in:
@@ -1256,6 +1256,8 @@ void* PhysicsBackend::CreateScene(const PhysicsSettings& settings)
|
|||||||
sceneDesc.simulationEventCallback = &scenePhysX->EventsCallback;
|
sceneDesc.simulationEventCallback = &scenePhysX->EventsCallback;
|
||||||
sceneDesc.filterShader = FilterShader;
|
sceneDesc.filterShader = FilterShader;
|
||||||
sceneDesc.bounceThresholdVelocity = settings.BounceThresholdVelocity;
|
sceneDesc.bounceThresholdVelocity = settings.BounceThresholdVelocity;
|
||||||
|
if (settings.EnableEnhancedDeterminism)
|
||||||
|
sceneDesc.flags |= PxSceneFlag::eENABLE_ENHANCED_DETERMINISM;
|
||||||
switch (settings.SolverType)
|
switch (settings.SolverType)
|
||||||
{
|
{
|
||||||
case PhysicsSolverType::ProjectedGaussSeidelIterativeSolver:
|
case PhysicsSolverType::ProjectedGaussSeidelIterativeSolver:
|
||||||
|
|||||||
@@ -94,10 +94,16 @@ public:
|
|||||||
API_FIELD(Attributes="EditorOrder(71), EditorDisplay(\"Simulation\")")
|
API_FIELD(Attributes="EditorOrder(71), EditorDisplay(\"Simulation\")")
|
||||||
PhysicsBroadPhaseType BroadPhaseType = PhysicsBroadPhaseType::ParallelAutomaticBoxPruning;
|
PhysicsBroadPhaseType BroadPhaseType = PhysicsBroadPhaseType::ParallelAutomaticBoxPruning;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Enables enhanced determinism in the simulation. This has a performance impact.
|
||||||
|
/// </summary>
|
||||||
|
API_FIELD(Attributes="EditorOrder(71), EditorDisplay(\"Simulation\")")
|
||||||
|
bool EnableEnhancedDeterminism = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The solver type to use in the simulation.
|
/// The solver type to use in the simulation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
API_FIELD(Attributes="EditorOrder(72), EditorDisplay(\"Simulation\")")
|
API_FIELD(Attributes="EditorOrder(73), EditorDisplay(\"Simulation\")")
|
||||||
PhysicsSolverType SolverType = PhysicsSolverType::ProjectedGaussSeidelIterativeSolver;
|
PhysicsSolverType SolverType = PhysicsSolverType::ProjectedGaussSeidelIterativeSolver;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user