1
\$\begingroup\$

We are developing JavaScript multiplayer top down game where characters can move freely and collide with each other. We are rather weak at mathematics and physics, luckily we don't need much, just some basic movement & collision mechanics.

After a lot of struggle and failures with custom collision mechanics we decided to use MatterJS library. That works like a charm when character collides with static object (like a wall). However when two characters meet, they basically bounce off each other.

We use simple circle based body with frictionAir and inverseInertia set to 0. There is a lot of other properties, but we are rather clueless how the bounce off actually happens. Anybody can point us in the right direction please?

\$\endgroup\$
1
  • \$\begingroup\$ What do you wish happened instead of the objects bouncing? Do you want a completely inelastic collision? \$\endgroup\$
    – Anko
    Commented Oct 12, 2015 at 21:56

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.