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 Edit: New URL: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...
Dad72 Posted March 14, 2017 Share Posted March 14, 2017 There is a forum for bugs. Here, are the questions and answers. But of memory, I believe that Canon does not like 0. put rather 0.000001 Quote Link to comment Share on other sites More sharing options...
Hans Posted March 14, 2017 Author Share Posted March 14, 2017 @Dad72 I know. Thought the question is implicitly clear. Question: How can I workaround this bug? If I change the friction of cube A to 0.0001 then friction of cube B is also 0.0001. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 14, 2017 Share Posted March 14, 2017 When I look in the playgroud, I see no error. a = 0.3 and b = 0 Quote Link to comment Share on other sites More sharing options...
Hans Posted March 14, 2017 Author Share Posted March 14, 2017 console.log(b.physicsImpostor.physicsBody.material.friction) a.physicsImpostor.physicsBody.material.friction = 0; I change just friction of a (ceteris paribus). I write friction of b in console. Friction of b is also = 0. It shouldn't be 0 too. You can see it also on mesh behavior. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 14, 2017 Share Posted March 14, 2017 So this is a bug that should go in the bug section. But your code difficult to watch the bug. when I look for me everything is Ok. You need to add the change in value of A to see the bug of B also 0 Quote Link to comment Share on other sites More sharing options...
Hans Posted March 14, 2017 Author Share Posted March 14, 2017 The bug is even the strange behavior. How can I show my problem else? BTW: Not only B changes his friction. If I add more meshs they change thiers friction too. I mean all change the friction by changing just one. If I bug post this, I can not get a workaround. And maybe there is a special reason for this behavior and it is not a bug. I still looking for help/workaround this behavior. Quote Link to comment Share on other sites More sharing options...
fenomas Posted March 14, 2017 Share Posted March 14, 2017 a.physicsImpostor.physicsBody.material == b.physicsImpostor.physicsBody.material // true For some reason both physics bodies have the same material object. Not sure if that's a bug on BJS's side or not. Hans 1 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.