Hello, I’m creating a game in which I am working on my own physics. I am using a parabola to get my character to follow that arc and jump. I would like to reset the characters velocity about every 10th of a second to the calculated point in the parabola. So all I need is some function or ability in unity to make set a velocity to point directly at a specific spot. Is there a inbuilt function like this in unity? There should be, i have used it in many other game engines, but I cant seem to find it in the documentation.
For instance:
x = player.transform.position.x + 0.1f;
float y = -(x - Ix - 1.414f) * (x - Ix - 1.414f) + 2f;
playerRigidbody.Velocity = velocity with magnitude from current position to (x,y)
Then it will reset every time the function is repeated. I could calculate what the velocity should be i guess, but i thought there might be an easier way.
Thanks For your help