Recent content by Arioch82

  1. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    Thank you betel, that works perfectly, I know that with (0,0,0) my life would be much easier but know I've got a general system to target a point from everywhere. Thanks to Petr too! I've also found out that my quaternion wasn't working because I wasn't applying an affine rotation but a linear...
  2. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    well actually i think is more something like (x1,y1) to (xp, yp) where yp = yt anyway, is xp that changes as a "proportion" of x2 and z2 to have everything in a way that works in 3D
  3. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    well the problem is that i don't have the angle... I was thinking starting from here: now my minimum velocity should be when b^2 - 4ac = 0 doing some substitution x_p^2 - 4(\frac{-g}{2v_0^2} x_p^2)(y_0 - y_p + \frac{-g}{2v_0^2} x_p^2) but from here i get the v_0^4 and i don't...
  4. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    yes I know, I'm currently using a trajectory with X and Z component from the rotated curve and Y from the standard (non-rotated) projectile trajectory. It gives me something more realistic/close to what I'm trying to achieve (is not a standard projectile). my projectile can hit the target in...
  5. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    Hi betel, the problem was in my formula, i made a mistake on rewriting everything in the code, it works ok! I'm struggling to find the minimum velocity to hit the target right now. I'm trying to work it out from the first formula in the first post but I'm stucked on it... any ideas about...
  6. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    ok got the full rotation matrix, and it works great! (at this point i think I've made some naive error on my quaternions test...) writing the matrix here just as a reference, someone else could need it. R(\theta)=\begin{pmatrix} (1-\cos\theta)\Delta x^2 + \cos\theta & (1-\cos\theta)\Delta y...
  7. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    projectile(t) is a 3D point. yes I stated it in the wrong way, I meant any plane parallel to XZ. I cannot change my coordinates so i need the general matrix form Petr's formula but i don't understand the n^t n part... this is a noob question bu isn't that still a vector?
  8. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    great now it works with any X and Z but the Y coordinate always needs to be the same between start and target point otherwise it won't hit the target. what do you mean with my trajectory formula is on the first post. what I'm doing is applying that matrix to projectile(t). I've also noticed...
  9. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    yes the formulas in my code are exactly the same you wrote here. the start point doesn't need to be on the origin. I found out that it works correctly only if the Y for start point and end point are the same and also one of X or Z is the same too (so like X and Y are the same or Z and Y are the...
  10. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    ok, I've applied that matrix, is going better as the parabola now starts on my start point but it's still not hitting the target... (see screenshot) I think now is matter of "recalcute the trajectory" that you were speaking about? I'm applying the matrix on every projectile(t) not on the...
  11. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    ok, I think that's fundamental, that's why I was thinking about rotating the gravity vector too so that it always lie on the parabola plane. Otherwise I do not have any wind or external force but I have no problem to add one. I don't care if is not exactly a parabola, so now the question...
  12. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    hi betel, thanks for the matrix as I said I've already tried it with quaternions, rotation around the cyan axis in the screenshot (but as you can see it didn't work), I'll give the matrix a try. What do you mean with "specify the machanism..."? Because I think that's my main problem...
  13. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    thx for the link I'll try to understand as much as i can... as I said I'm not a physicist or a mathematician and all these names/equations are just scaring me :) I'll be back to you after reading all those links. Cheers
  14. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    Yes i would like to achieve a trajectory like the second screenshot. It's ok to use rotation/projection but when I try to use them my result is like the third screenshot so that it doesn't start on my start point and it doesn't hit the target (like the second screenshot) I think is because I'm...
  15. A

    3d parabola (projectile motion) to hit a target on an arbitrary plane

    Hi Petr and thank you for your reply. unfortunatly I've already tried that one and it doesn't give me the desired result. If you see the new screenshot attached to this post you can notice that in that way (well I'm using quaternions instead of a matrix but it should be the same) the all...
Back
Top