Jump to content

1.1.4 physics bug (gravity > velocity = no movement)


Recommended Posts

Hi guys,


I'm not sure if right now it's smarter to make a posting or open a github issue.

So I go with postings for now.


If you have gravity.y set to 301, and you set body.velocity.y = -300 there is no movement, IF you have bounce.y set to 0.

Setting velocity to -301 and you get the normal jump.


All numbers lower then the gravity value result in no movement at all (if bounce.y is set to 0).



Steps to reproduce:


Alter line 116 of the starstruck.js example to set velocity to -200 (instead of -250).

And set bounce to 0 in line 50.

Effect: No jumping is possible.

Not sure exactly how to reproduce in starstruck yet.. I'll investigate further.



PS: this is one of two bugs I noticed when changing to phaser 1.1.4 .. so compared to some other version changes (of other software products) that I won't go into, this is smooth  :)

Thanks for all your work Rich!

Link to comment
Share on other sites

  • 2 weeks later...

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