- Joined
- Sep 12, 2008
- Messages
- 657
Hey everyone, i was playing Pudge wars..
and i saw that when you hit a wall for example with the hook,
it caculates diffrences in angles, and shoots it towards the next angle.
for example:
a hook is sent toward a wall, the wall is flat, (180 degrees ______),
the hook hits the wall, and the hook does this:
set angle = angle + 180, (makes him turn back) + ~70.
that makes it add a bit wide angle, and allso turn back.
but thats only flat.. how do i caculate every diffrence in the wall?
(if the wall is 100 degrees, 171 degrees, 50 degrees, just in a easy way)
and in Vjass/Jass if you could.
thanks in advance. (this is just out of curiosity.)
and i saw that when you hit a wall for example with the hook,
it caculates diffrences in angles, and shoots it towards the next angle.
for example:
a hook is sent toward a wall, the wall is flat, (180 degrees ______),
the hook hits the wall, and the hook does this:
set angle = angle + 180, (makes him turn back) + ~70.
that makes it add a bit wide angle, and allso turn back.
but thats only flat.. how do i caculate every diffrence in the wall?
(if the wall is 100 degrees, 171 degrees, 50 degrees, just in a easy way)
and in Vjass/Jass if you could.
thanks in advance. (this is just out of curiosity.)