Jump to content

How to make physics "hard"


adamk33n3r
 Share

Recommended Posts

Hey everyone,

 

I've been experimenting with Phaser for the past week or so and I found that the physics seems....squishy. Like when say a block lands on the ground it goes into it a bit before popping up. And if you take your player and jump onto the block it sags into the ground. Another thing that happens is when you move left, pushing a block into a wall the block goes into the wall a bit and you into the block as well.

 

How can I make it so that the bodies do not do this? How can I make them hard?

 

I have increased the gravity quite dramatically as I like fast gravity so I'm sure that has something to do with it but I'm not willing to give that up. There must be a way to resist going into other bodies, right?

 

Adam

Link to comment
Share on other sites

I have these rock columns that sprout up from the ground in my game and they are set immovable, e.g. rockColumn.body.immovable = true. That prevents them from getting separated by impacts... but that might not work for falling blocks like you have. Have you played around with that property?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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