I have a "simple question"
How do i speed up a physics ball, that slides on bricks? heres an example:
I want the ball to speed up, when overlapping the "arrow bricks" so it can make longer slides!
(right now the gravitation is preventing it from sliding all the way)
Any ideas would be a massive help!
Thanks so much in advance.
adding an impulse on collision with the arrow brick?
Develop games in your browser. Powerful, performant & highly capable.
but at what angle? (how can you predict the balls slide trajectory?) and what if the ball slides back again, how will that work? o.O
But right now this seems to do the job:
VELOCITY X - Ball.Physics.VelocityX* 1.05
VELOCITY Y - Ball.Physics.VelocityY * 1.05
Not sure if thats the best method, but it seems pretty stable.
Something like this?
Please note that you might have to find a way to deal with the upside/down and vertical bricks, add Y comparisons to invert the detection that determines the impulse angle...
Thanks ali0s, i'll take a look at it!