Sign in to follow this  
Stephan

bugfix for Panda2 p2 plugin

Recommended Posts

Hi @enpu,

 

I just encountered en fixed a small bug in the p2 pulgin. Since it is not open source, I cannot create a pull request so I decided to post it here instead:

 

p2.js line 13876:

context.rect(
    -shape.width / 2 * body.world.ratio,
    -shape.height / 2 * body.world.ratio,
    shape.width * body.world.ratio * game.scale,
    shape.height * body.world.ratio * game.scale
);

 

should be:

context.rect(
    -shape.width / 2 * body.world.ratio * game.scale,
    -shape.height / 2 * body.world.ratio * game.scale,
    shape.width * body.world.ratio * game.scale,
    shape.height * body.world.ratio * game.scale
);

 

Hope this is helpful.

Stephan

Share this post


Link to post
Share on other sites

@enpu

handsome_guy_eemeli.pnghandsome_guy_eemeli.pnghandsome_guy_eemeli.pnghandsome_guy_eemeli.pnghandsome_guy_eemeli.pnghandsome_guy_eemeli.png

please don't give up panda2😢 , the engine hasn't been updated almost 4 month. 
I am so sad 😭
enpu please come back to continue to work on it. panda users are waiting for you
Panda has great Potential , I love it. haha

 

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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.