Refactor Physics to separate PhysicsBackend

#673
This commit is contained in:
Wojtek Figat
2022-01-20 23:28:43 +01:00
parent cf1af53ab8
commit 427846f73b
66 changed files with 4803 additions and 4327 deletions

View File

@@ -18,7 +18,7 @@ API_CLASS() class FLAXENGINE_API SplineCollider : public Collider
DECLARE_SCENE_OBJECT(SplineCollider);
private:
Spline* _spline = nullptr;
PxTriangleMesh* _triangleMesh = nullptr;
void* _triangleMesh = nullptr;
Array<Vector3> _vertexBuffer;
Array<int32> _indexBuffer;
Transform _preTransform = Transform::Identity;
@@ -76,5 +76,5 @@ protected:
void DrawPhysicsDebug(RenderView& view) override;
#endif
void UpdateBounds() override;
void GetGeometry(PxGeometryHolder& geometry) override;
void GetGeometry(CollisionShape& collision) override;
};