Jump to content

phaser 2.0.2 arcade physics bug


Moe
 Share

Recommended Posts

Yes because it comes back in with a large delta timer and gravity is so high its forcing it to tunnel through the platform.

 

Set Time.deltaCap to something other than zero to limit the maximum the delta can ever rise to and it will prevent this. There's no "standard" value it should be, it's dependant on each game really.

Link to comment
Share on other sites

delta is the number of ms that has elapsed between this frame and the previous frame, divided by 1000.

 

So in a solid 60fps system it's 16.666 / 1000 = 0.016 (recurring) - the 16.666 coming from 1000 (ms in a second) / 60, i.e. one frame every 16.6 ms for 60 frames in a second.

 

For 20fps it'd be 50 / 1000 = 0.05.

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