Sign in to follow this  

Objects might fall through despite of collision

Recommended Posts


When game object reaches high speed on y axis it might fall through a ground layer(that supposed to be collided with).

Can I fix it somehow? Perhaps increase frequency of collision checking(Is it possible in Phaser?).

Share this post

Link to post
Share on other sites

If you use Matter:

You can adjust the number of iterations that Engine.update performs internally.
Use the Scene Matter Physics config object to set the following properties:

positionIterations (defaults to 6)
velocityIterations (defaults to 4)
constraintIterations (defaults to 2)


If you use Arcade you could just alter World.js a bit where it says (in update):


Share this post

Link to post
Share on other sites

So, I came up with a solution that works(so far). I just made a setInterval with callback(collider.update()) with 3ms(perhaps I can set more seconds) delay.
But there is still a performance problem. There is my loop and phaser loop, so I invoke update more, than enough.

Share this post

Link to post
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.