CS2D
Scripts Bouncing direction Bouncing direction
3 replies Hello Unreal Software,
I want to know, is there a function returns a direction after bouncing?
Example:
Grenade direction (before bouncing) = 45˚
The wall / obstacle direction = horizontal.
Result = 135˚
In a tile map you can just invert the x or y component of the velocity. No, there's no such function in CS2D but it can be easily scripted.
Waldin's suggested file should have the calculations for it somewhere.