Antoine Farel
Member
Hi everyone,
Firstly, I'm sorry if this problem has no place on this forum / topic.
I have a problem on a fairly physical / mechanical subject. I will first explain what I want:
I have a "projectile launcher" at (x0, y0) - in fact its more a "chick launcher" but it's not very important - the projectile being subjected to gravity, its trajectory is non-linear: it is parabolic. It is therefore projectile motion without friction things (high school things). The projectile has 2 variables : alpha then angle and v0 the initial speed. And I got my non-moving player in (x1,y1).
My question is : wich couple (x0, alpha) should I use?
I think my problem in direct cue (so (0,0) is in bottom left) and I started with that.
The coordinate equation is the following one :
So we can get vo as function of alpha:
(We can get v0 by inverting and put under the root)
So I get the "answer" of my question? Not really, there is sooooooo many couples that work and I'm strugguling on how to get a couple that works well (and finding it algorithmically since setting one of the two values is ineffective in my opinion because I want something consistent that works "well" and not have a projectile that goes super fast or super high to solve the problem. Ideally I would like him to stay in my room.)
If you have any ideas, I'm interested! And If you have any question, feel free to ask!
Thanks!
Firstly, I'm sorry if this problem has no place on this forum / topic.
I have a problem on a fairly physical / mechanical subject. I will first explain what I want:
I have a "projectile launcher" at (x0, y0) - in fact its more a "chick launcher" but it's not very important - the projectile being subjected to gravity, its trajectory is non-linear: it is parabolic. It is therefore projectile motion without friction things (high school things). The projectile has 2 variables : alpha then angle and v0 the initial speed. And I got my non-moving player in (x1,y1).
My question is : wich couple (x0, alpha) should I use?
I think my problem in direct cue (so (0,0) is in bottom left) and I started with that.
The coordinate equation is the following one :
So we can get vo as function of alpha:
(We can get v0 by inverting and put under the root)
So I get the "answer" of my question? Not really, there is sooooooo many couples that work and I'm strugguling on how to get a couple that works well (and finding it algorithmically since setting one of the two values is ineffective in my opinion because I want something consistent that works "well" and not have a projectile that goes super fast or super high to solve the problem. Ideally I would like him to stay in my room.)
If you have any ideas, I'm interested! And If you have any question, feel free to ask!
Thanks!
Attachments
-
2.9 KB Views: 3