I´ve get two angles. One for a ball(it moves straight forwad). The second angle returns the angle of the next wall. Now the angle of the ball should be turned like a ball rolles on a buillardtable. If the balls angle = 0 and the walls 90 then the ballangle should be turned to 180, if the ballangle = 10 then it should be turned to 80. But not only at the 90° wall. The walls can get all values up to 360. How can I manage this ?
i know what u mean!!! use Bounce" look it up in the manual, it will give u more details! but if ur going to use the physics engine then the engine does that itself, no extra scripting required.
ohh!! I get it, sort of like a brick attack deal, when it hits the wall it bounces off!
Say we have the following:
BallVector(0,3,0) <-- hit's a wall at the bottom
if (ball_hits_a_wall) give the vector a random X and/or Z value between the values X and Y.. (this assures it doesn't just change directions) Invert BallVector. move it.