#Get or set Entity Physics Material from script.
1 messages · Page 1 of 1 (latest)
Could I modify the PhysicsPackage from github and make the restitution/bounciness float public and change it from there?
https://docs.unity3d.com/Packages/com.unity.physics@1.0/manual/concepts-materials.html?q=physics material
Just follow that, look at which component actually has the restitution/bounciness in its component and get that component and change the value. No idea how to code it, but this should probably give an idea.
https://docs.unity3d.com/Packages/com.unity.physics@1.0/api/Unity.Physics.Material.html?q=physics material
Thanks! I’ll check it out and post here the solution if I find it 👍🏻