p2 physics object overlap while dragging

Recommended Posts

I am working on a project where i can drag an object in X-direction only(like in a abacus).
Is it possible to drag objects in one direction only?

I created a simple task where i can move two objects with mouse (link here).
The issue is that objects are pushing inside each other if i drag one object to another.
I need them to be hard like diamond.

Can i achieve that with p2 js or i have to use box2d plugin (like here).
Also is box2d will be availabe in phaser v3.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.