Can forces be stored as dot products? such as the gravity on a planet.
And for a game, for example a 2d spaceship game. would one add a right thrust vector and a left vector to power the ship and move it around. then this would mean the angle of the ship shown on screen is computed from those vectors and the player would have no control over the actual angle of the ship.
Is this correct?
As for your first question, yes. Why wouldn’t you be able to? Though I would store gravity as just a value, and then calculate the weight of the object.
If I understand you, you are asking whether you should have the right key of a spaceship as a vector force to move left or to have the right key rotate the ship? The first idea seems more logical; if your spaceship is stuck in a place such as this:
(Excuse my poor ASCII; it’s meant to be a ship stuck in a vertical dead end) your first solution would cause the ship to ricochet in the tunnel. Your second solution (applying a rotation directly) would simply have a ship rotating. Which would seem very unnatural if the tunnel was narrow.
Look up rotation matrices.