DWboutin

Enhanced physics

Recommended Posts

Hi,

 

Is there a way to enhance the framework's physics? like if i have a platform who fall on another one, but they touch just a little, I want the falling one to rotate like real gravity collision. For now, it just stop falling and stay horizontal.

 

How can i do this or how can i enhance it (tutorial on how to create a pahser plugin or extension maybe)?

 

Thank you

Share this post


Link to post
Share on other sites

The include physics system is for simple (but fast) AABB physics only. So no rotation or Box2d like motion. The 1.2 version of Phaser, which we start in the New Year, is the one that includes a proper full body physics system (based off the excellent p2.js), but in the meantime you'd have to integrate something yourself. Definitely possible, the game One Sword, entered into LD28, used Box2d merged with Phaser. It's open source, so maybe worth looking at.

Share this post


Link to post
Share on other sites

Great! I will looking forward to the Phaser. 1.2. Your framework with p2.js will kick asses! I'll dig up into this github repository!

 

I'm happy to had choose your framework to be the first i learn for game developpement!

 

Thank you again for the awesome answer Rich!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.