I have two components I'd like to connect them to each other. 1. PhysicalComponent - containing rigid body(position, rotation, velocity) and is holding body from physics engine. 2. GraphicsComponent - onscreen representation(position too, rotation too).
I'd like to sync this components, how to do it? 1. Read position, and rotation in GraphicsComonent from Physical comopnent. 2. Add one more component that sync them.
But problem is that I want to change on screen representation( other class such as PositionInerpolator do it, and it can work only with GraphicsComponent), and it must change physical body position. Is it a bad idea, and I must move physical body directly? Thanx in advance.