#### Roman_Ablo

##### Banned
So I won't bother explaining anything in text but I'll post a beautiful paint picture that explains this.

*Basically want a line to be drawn showing the trajectory the grenade will take. I am pretty bad when it comes to trigonometry, geometry and math in general

#### Broihon

##### edgy 12 y/o
Escobar Tier VIP
Fleep Tier Donator
The grenade's trajectory is most likely a parabola (depending on the pitch angle of course). The reflexion will be nasty though because you have to check for object collision. If you can check that somehow the math isn't that hard.
The angle of incidence equals angle of refraction. That means (if the trajectory is a parabola) you'd just have to take the inverse tangens of the first derivative of the trajectory at the point of collision.
Trust me, the math will be the easy part.

#### Roman_Ablo

##### Banned
Вroihon;47967 said:
The grenade's trajectory is most likely a parabola (depending on the pitch angle of course). The reflexion will be nasty though because you have to check for object collision. If you can check that somehow the math isn't that hard.
The angle of incidence equals angle of refraction. That means (if the trajectory is a parabola) you'd just have to take the inverse tangens of the first derivative of the trajectory at the point of collision.
Trust me, the math will be the easy part.
I'm dying, I can barelly understand 70% of what you said. Okay, I'll go see what I can do about it and come back with some results.

Attention! Before you post:

99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

• Fill out the form correctly
• Tell us the game name & coding language