t-w-in Posted March 23, 2016 Share Posted March 23, 2016 Hello, can you please help me? I require non-rotating crates. Like in this oficial example: http://phaser.io/examples/v2/p2-physics/platformer-material , where I add just one line box.body.fixedRotation = true; to the for cycle creating the boxes. Suddenly, they start to shift and slip. I need them to stay still. How can I fix this? Do you have any idea please? I would be very greatful! I have tried using different materials, but notning helps. Friction is just gone Link to comment Share on other sites More sharing options...
t-w-in Posted May 24, 2016 Author Share Posted May 24, 2016 Hi, I'm still struggling with the issue. Do you have any idea, please? Link to comment Share on other sites More sharing options...
Milton Posted May 24, 2016 Share Posted May 24, 2016 <disclaimer>I know nothing about P2, never used it</disclaimer> I played around with the example a bit, and it seems to be caused by box/box friction. So you could try this: var boxBoxCM = game.physics.p2.createContactMaterial(boxMaterial, boxMaterial, { friction: 0 }); Link to comment Share on other sites More sharing options...
Recommended Posts