I have problem that I have aiming system using position, and I need to give the projectile some real looking ballistic curve. This are some basic points of what I need.
the part can be in any distance (inside gun max distance)
It must look really realistic
it must look realistic in any distance, so it won’t be just same curve, but scaled
it will be really great, to have the curve easily changeable
But I don’t have any idea, so can you help me with the logic?
I am in 7th class, so I really don’t understand integrals. Is there some way with easier math operations, or can you describe it to me?
That first thread already contains all the code for firing a bullet with a curve and code to predict the path of bullet, you don’t strictly have to know how the equations got there.
Ok, but from what I know from first few replyes is, that i know position, on that i am aiming, but i know position, on what i need it to land
If you want gravity to affect it, you can use body force
Ok, but there are much more aspect, than just gravity.
Ok, but i need to count the curve from target position.
There is also air, so it is slowing down, but also can go up, …
But main problem is this:
so i need to use maths.
so i need to use maths.
You really don’t. There’s many resources out there that involves minimal math.
To calculate bullet trajectory (without math) you can use this resourced called “FastCast”, it has bullet physics (as highlighted by the post)
Hey everybody! I’ve just released Version 4 of the module. Please make sure to message me if you see anything wrong.
This version adds…
(I’m mentioning @SmoothBlockModel and @CheetahSp33d since you two had asked about it.)
I’ve also created an update log in the bulletin board. Please read it, as I’ve moved the API docs over to my GitHub as well as some other important information: FastCast Changelog Thread
I’m no expert (I really haven’t used this module), but if you do need help, maybe
@EtiTheSpirit can provide you with further support. The docs should help you initially set this up.
For me personally, I learned some useful math by teaching myself, so you can be in a lower math level and still learn some useful programming concepts.
This is what I am doing, I learned whole c#, lua, and some others myself, and now i am learning some basic math functions like sinus
That’s good, but you should learn the theorems and other important things, sine by itself requires learning the Law of Sines. Or with cosine you should also know Law of Cosines, that kind of thing.
I tried to message
@EtiTheSpirit and he saied, that this model can just simulate the ballistic curve, but can’t count it from target position.
Not stock, at least.
If you know how to do the math, you can manage it. I’m not educated in this type of math personally, or I at least don’t know how to get force + initial velocity from displacement. There’s an equation out there. Just do some googling.