in projectiles, how to equate horizontal speed as function of Horizontal displacement(how far I want the object to travel sideways)
in a simulated game environment, I'm making projectiles that are thrown upwards and to the side. when done unconstrained, it's quite easy; it has a velocity vector pointing up and to the right, and an acceleration gravity vector that will ensure the projectile reaches back to the ground with a smooth projectile path, and no need to hinder the sideway movement.
but we are constraint in this game, the side way movement is be limited within a provided platform. so if we were to fix the horizontal speed variable, projectiles thrown higher would travel further distances.
what I want to achieve, is determine the horizontal distance to be traveled by the projectile and perhaps how high I want the it to be thrown, and let the game calculate the horizontal component of the velocity vector.
Your answer
Follow this Question
Related Questions
Using rb.velocity causes low gravity. 2 Answers
Bounce, gravity and velocity 1 Answer
3D Aimable Sling Shot 0 Answers
Order of execution: AddForce, rigidbody movement, velocity update? 0 Answers
Rigidbody projectile misses collider 1 Answer