Jump to content

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.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...