Hi, i have this line of code:
rigidbody.useConeFriction=true;
It works perfect in Unity 4.6.8f1, the problem that i have now is that i need to build my project as WebGL, in order to do that i migrated to 5.2.0f3, and now i’m receiving this error:
SetUseConeFriction has no effect. Cone friction is no longer supported, see setFrictionModel instead
UnityEngine.Rigidbody:set_useConeFriction(Boolean)
Can someone please give me some tips in order to fix this error?
Thanks in advance.
Will.
Hmmm… let’s look into that.
It appears that this is an older error message and setFrictionModel not longer exists. I don’t believe different friction models are available at this time. Is there a specific reason you need it?
Hi Mike, thanks for your time, well my project its a pool project, that was the friction model that i applied to the rigidbodies of the balls once they were on the table.
Is there any similar model that i could use on unity 5.2.0? the main thing is that i need to build my app as WebGL, that’s the reason i migrated to the current version of unity.
I don’t mind if i have to change some code, but the thing is that exists on the current version something at least similar to this.
It looks like PhysX may have dropped support for different physics models. Does the game play alright in Unity 5 with the standard model? Have you given it a try? Perhaps with the changes you won’t need a different model.