Does anyone know how to make a bounce code? Like if you run into a unit/doodad/item/destructible/wall at 45º North-West than you bounce 45º Sounth-West.. Ok, can someone make this for mme, and everyone else who would like a bounce? Is it possible? How about adding all angles?
If you've ever played a maze game you can slide on ice. I plan to have this sliding triger in my map but having a bounce would be so awsome and actually would complete my ideal map. Think of the possibilities and please, somebody help!
Waldbaer
#2
The problem is that for a bounce you need a bouncing object with movement direction (that's not the problem) and the angle of the static object at the position of the bounce. That's a bigger problem, because how do you want to get this from a destructible or even a unit? That's difficult. You need a form as simple as possible for collision object, e.g. a circle or even better a rect. The rest are more or less simple mathematics.
Quite simple... If you ignore, what Waldbär said. In that case, you will get your code tomorrow. Else... Well, I would not know how to do that as modell geometrics are not used in Warcraft 3. (collision size forms a circle for any widget)