Hans Posted March 14, 2017 Share Posted March 14, 2017 Hi @all, I think I found a bug again. In this PG: http://playground.babylonjs.com/#249T6Y I change friction for a to zero but friction b becomes zero too (See console too) If it is no bug, please tell me how can I change the friction for just a. Quote Link to comment Share on other sites More sharing options...
adam Posted March 14, 2017 Share Posted March 14, 2017 It appears as though the plugin is setup to share materials between physics bodies if they have the same friction and restitution. https://github.com/BabylonJS/Babylon.js/blob/master/src/Physics/Plugins/babylon.cannonJSPlugin.ts#L200 For now, make sure your bodies don't have the same friction and restitution when you create them: http://playground.babylonjs.com/#249T6Y#1 RaananW and Hans 2 Quote Link to comment Share on other sites More sharing options...
Hans Posted March 14, 2017 Author Share Posted March 14, 2017 Okay, thanks! Is there a ticket for this bug? So i can see when its solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.