Answer the question
In order to leave comments, you need to log in
How to set parabolic movement?
There is an object, when clicked on, it should "fly away", that is, fly up a little and to the side, and then, under the influence of gravity, fly down, the trajectory is similar to a parabola.
And so what we have - there is point A where the object is standing, there is point B where it should eventually land, the question is - how is it easier to do this?
this.transform.position = Vector3.MoveTowards(this.transform.position, new Vector3(EndX, EndY, 0), 5f * Time.deltaTime);
Answer the question
In order to leave comments, you need to log in
Attach a RigidBody and fire it into the sky with AddForce(0, 0.5f, thrust, ForceMode.Impulse);. It will fly by itself in a parabola.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question