Ive been messing around with gravity and ive gotten the ball to fall and bounce off these blocks that i made. The blows are angled however, how do i get it to bounce in the direction of teh angled blocks?
Scale the MC down or up depending on where it is going.
scale the mc down :q:
bouncing off angles is much harder than bouncing an object off a wall… it’s kind of hard for me to explain all the trig involved in it… i’ll if there are any tutorials on that
actually there are no specific angles when dealing with gravity, the natural motion of a ball moving in 2D with gravity falls in a parabola. The solution is to add another variable, let’s say horizontal_speed, the speed of this is always fixed and no need to accelerate it. I hope i answered your question