There is a level created from static physical. objects (Box2d), at the level there is a dynamic object (ala the main character of the game), you need to make it so that it automatically constantly moves forward at one speed.
For example, if there is a hill, then it must rise and descend from it at the same speed as in a straight line and not fly up on the slopes as on springboards, i.e. go strictly along the line. Those. it must be a physical object, but that would not be acted upon by the acceleration / deceleration of gravity.
I do not quite understand how to do this with physics. I tried to use box2dBody->ApplyLinearImpulse
and box2dBody->SetLinearVelocity
, but this is exactly the impulse, but a constant speed is needed.