Answer the question
In order to leave comments, you need to log in
Gamedev-question from school physics: power is equivalent to force?
Hey!
I'm making a game about space (so, as an entertainment). Keplerian orbits, ordinary Newtonian physics. So.
The spacecraft has an engine. I want to limit its power to some parameter (or curve) so that everything is like for real.
The motor is controlled by a function that takes as input the value of the force F, in newtons. (Inside the function, we divide Fdt by the mass, we get the acceleration, we add it to the speed and we fly, and so on 50 times per second, everything is as usual).
That is, I need to limit the force F at the input. Knowing the maximum power W.
According to the formula W \u003d dA / dt
A is work. Which in this case is equivalent to the kinetic energy E k (am I right?).
Kinetic energy is calculated by the formula E k =mv2 /2
That is, having the past and new speed values, we can recalculate dE k and then W. And vice versa.
But. I have doubts:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question