Home › Games › Avoid And Constrain

Avoid And Constrain

Rating:

/5Be the first to rate!

Developers:

Language:

Play Mode:

About Avoid And Constrain

The ball in this example uses 2 prototype functions that each add an avoid mouse and a constrain to box behavior to that ball. The avoiding is handled by determining mouse distance from the object while constrain uses get bounds to keep it within the bounds of another object (in this case, the box).

Source

https://www.senocular.com/flash/source/?entry=667

Comments

Most played