I’ve been trying to make something like this, https://gyazo.com/ef5aadde0f5000a3dd354da59bdb4977
However, I just want to know how to make it curve towards the target accurately, I’ve almost done something similar but cannot figure out what to do.
Welp okay, using my knowledge that I coincidentally learned a month ago in AP Physics.
In projectile motion, a equation can be used to solve. We can use a horizontal equation for this.
Use x = x(subscript 0) + v(subscript 0)t + 1/2gt^2
x subscript 0 is just the initial velocity of the projectile in its horizontal component. x is the range of the horizontal component/ trajectory, 1/2gt^2 is 1/2 of the value of gravity multiplied by the time squared. Using these equations you can use algebra to solve for you components and use them in your script.
In your script i would only use default value of gravity, and calculate the value of x(subscript 0).
You would also need to make sure that you tell the function on clicking to follow through that parabolic trajectory.
I think RocketPropulsion might be something worth trying also (Also network ownership might help with RocketPropulsions)
The person in that gif likely used something called Bezier Curves with anchored parts: https://developer.roblox.com/en-us/articles/Bezier-curves
Yes, that’s a much easier method in creating what he’s asking. I only gave an answer in regards to a real projectile.
Read the article, a bit confused about how I would use bezier curves
If you’re still confused, I suggest you read this.
https://devforum.roblox.com/t/can-anyone-explain-bezier-curves-in-the-most-simple-way-possible-please/693507/2
was made by me and i used bodyposition i think or that, mightve been lerping forgot. if its bodyposition, just loop for every new coordinate you get from bezier. if its lerp, same principle but lerp to the coordinate
here’s an updated version of a new skill. this one uses lerping
Very cool wunbo-san. Big fan. When I grow up I will be just like you.
Hey i’m trying to make something similar but with fire balls, and i was wondering what you used for the hit detection, was it a touched event, ray cast or region3?
raycastTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT