Jump to content

Collision Accuracy


doyouknowyou
 Share

Recommended Posts

Does anyone know how reliable/accurate arcade collisions are? Im finding a sprite passes through a block roughly 1/50 times, and I can't recreate the error myself.

 

I've read somewhere that phaser arcade collision isn't absolutely 100% accurate, especially at lower frame rates, could anyone confirm whether this is true?

 

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

True, and I don't know how to fix it. :) Somebody suggested changing body.mass for the player and the floor but that doesn't help in my case. Other solutions work with setting arcade.TILE_BIAS to 40 (sometimes different numbers), which isn't helpful for me since I don't use the included tile system. Very annoying for me, considering changing to p2 (though somebody said that none of the physics engines included in phaser support continuous collision detection and therefore all have this problem.

 

You COULD try and implement box2d or another continuous collision detection physics engine, of course... :/

 

What rich said in November '14 (here) :

It's still possible for 2 objects to pass through each other if they are moving fast enough that they jump through in a single update - fixed-steps can't fix this, only a continuous collision detection system can, and that isn't built into this release.

 

 

This lets me hope it will be built into phaser later (and I hope "later" is "sooner"  :) )

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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