valueerror Posted November 14, 2014 Share Posted November 14, 2014 lets say i do not need damping, gravity or friction calculations in my game.. is it possible to disable those calculations completely by setting something likephaser.physics.p2.frictionEquations = false;so p2 would not even bother to waste time on those? thx in advance Link to comment Share on other sites More sharing options...
valueerror Posted November 16, 2014 Author Share Posted November 16, 2014 just in case this question was pushed down before someone with deeper p2 insight could read it ;-) i found out that game.physics.p2.applyDamping = false;would deactivate damping completely.. but it looks like this is not working with other stuff.. this for example does NOT work:game.physics.p2.applyFriction = false;i can stil console.log the friction equation in the onPresolve event... so this seems to be still calculated ... thx again! Link to comment Share on other sites More sharing options...
wayfinder Posted November 16, 2014 Share Posted November 16, 2014 If you have an onPresolve event anyway, you can simply set equation.enabled to false for friction equations in there. Link to comment Share on other sites More sharing options...
valueerror Posted November 16, 2014 Author Share Posted November 16, 2014 Well that would disable friction for the coming collision but not the entire "friction system" right? The equations array would still be populated.. Link to comment Share on other sites More sharing options...
Recommended Posts