Sharing data between graphics and physics engine in the game?
- by PolGraphic
I'm writing the game engine that consists of few modules. Two of them are the graphics engine and the physics engine.
I wonder if it's a good solution to share data between them?
Two ways (sharing or not) looks like that:
Without sharing data
GraphicsModel{
//some common for graphics and physics data like position
//some only graphic…