Refactor Collider base class to improve code sharing across collider shape types

This commit is contained in:
Wojtek Figat
2021-02-10 14:33:16 +01:00
parent 5cb2322270
commit 8bce445ab0
13 changed files with 154 additions and 351 deletions

View File

@@ -25,9 +25,6 @@ private:
void OnCollisionDataChanged();
void OnCollisionDataLoaded();
#if USE_EDITOR
void DrawPhysicsDebug(RenderView& view);
#endif
public:
@@ -45,10 +42,8 @@ protected:
// [Collider]
#if USE_EDITOR
void OnEnable() override;
void OnDisable() override;
void DrawPhysicsDebug(RenderView& view) override;
#endif
void UpdateBounds() override;
void CreateShape() override;
void UpdateGeometry() override;
void GetGeometry(PxGeometryHolder& geometry) override;
};