Integrating up through commit 90f050496

This commit is contained in:
alexpete
2021-04-07 14:03:29 -07:00
parent 8f2ed080a9
commit c2cbd430fe
2694 changed files with 285622 additions and 176874 deletions
+7 -11
View File
@@ -16,7 +16,7 @@
#include <AzCore/Component/TickBus.h>
#include <AzFramework/Entity/EntityDebugDisplayBus.h>
#include <AzFramework/Physics/World.h>
#include <AzFramework/Physics/Common/PhysicsEvents.h>
#include <PhysXDebug/PhysXDebugBus.h>
#include <Cry_Camera.h>
@@ -110,9 +110,6 @@ namespace PhysXDebug
#ifdef IMGUI_ENABLED
, public ImGui::ImGuiUpdateListenerBus::Handler
#endif // IMGUI_ENABLED
#ifdef PHYSXDEBUG_GEM_EDITOR
, public Physics::WorldNotificationBus::Handler
#endif // PHYSXDEBUG_GEM_EDITOR
{
public:
@@ -125,6 +122,8 @@ namespace PhysXDebug
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
SystemComponent();
// PhysxDebugDraw::PhysxDebugDrawRequestBus
void SetVisualization(bool enabled) override;
void ToggleVisualizationConfiguration() override;
@@ -149,11 +148,6 @@ namespace PhysXDebug
// CrySystemEvents
void OnCrySystemInitialized(ISystem&, const SSystemInitParams&) override;
#ifdef PHYSXDEBUG_GEM_EDITOR
// Physics::WorldNotificationBus
void OnPostPhysicsSubtick(float) override;
#endif
private:
/// Configure a PhysX scene debug visualization properties.
@@ -203,7 +197,7 @@ namespace PhysXDebug
void BuildColorPickingMenuItem(const AZStd::string& label, ColorB& color);
#endif // IMGUI_ENABLED
Physics::World* GetCurrentPhysicsWorld();
physx::PxScene* GetCurrentPxScene();
// Main configuration
PhysXVisualizationSettings m_settings;
@@ -212,7 +206,7 @@ namespace PhysXDebug
AZ::ScriptTimePoint m_currentTime;
bool m_registered = false;
physx::PxBounds3 m_cullingBox;
bool m_editorPhysicsWorldDirty = true;
bool m_editorPhysicsSceneDirty = true;
static const float m_maxCullingBoxSize;
AZStd::vector<Vec3> m_linePoints;
@@ -225,6 +219,8 @@ namespace PhysXDebug
AZStd::vector<AZ::u32> m_jointIndexBuffer;
AZStd::vector<AZ::Vector3> m_jointLineBuffer;
AZStd::vector<bool> m_jointLineValidityBuffer;
AzPhysics::SceneEvents::OnSceneSimulationFinishHandler m_sceneFinishSimHandler;
};
/// Possible console parameters for physx_Debug cvar.