Jump to content

[ASK] Trying to create a 2D physics blob


Recommended Posts

Hi, Guys. 

I am trying to create a blob ball using p2js. What I am trying to achieve is something like the "Sushi Cat" game.

I created a blob using the structure in the picture A (attached). The gray orbits are allowed to penetrate each other, and the red lines are distantConstraint.

But the problem is when the blob fell from a high place (or hitting corner), it becomes like in picture B.

I tried to use spring, different constraint force, smaller orbits, but they are not working properly.

My questions are;

1. What is the solution for this?

2. Is there any other js physics engine that has a specific feature to do this task?


Any help is greatly appreciated. 



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...