Answers for "change physics material unity"

C#
0

change physics material unity

coll = GetComponent<Collider>();
         coll.material.dynamicFriction = dynFriction;
         coll.material.staticFriction = statFriction;
Posted by: Guest on July-10-2021
0

change physics material unity

GetComponent<Collider>().material = physicMaterial;
Posted by: Guest on July-10-2021
0

change physics material unity

Collider coll = GetComponent<Collider>();
coll.material.dynamicFriction = dynFriction;
coll.material.staticFriction = statFriction;
Posted by: Guest on July-10-2021

C# Answers by Framework

Browse Popular Code Answers by Language