Download

Vector control, angle / direction with physics

Hi, I’m trying to control the vector of a object (ball) after collision (2D, right and up), I wish to control it between a minimun and maximun angle and keep always the same speed. I’ve practicing with the vectors and normals, but for maths limits I can’t get it. There are some function to read the angle up two vectors? and then set up a new one if is out a condition?