G
G
gl_evhen2015-12-21 19:36:25
JavaScript
gl_evhen, 2015-12-21 19:36:25

How to make the ball bounce off the button?

There is a page
click.konstantintv.ru
on which the ball moves, how to make it bounce not only from the walls of the viewport but also from the button, I tried to add to the conditions for choosing the trajectory depending on the distance between the ball and the button, but this did not affect

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Litvinenko, 2015-12-21
@edli007

www.phaser.io/examples/v2/box2d/bullet-bodies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question