Collider.materialvar material : PhysicMaterialDescriptionThe material used by the collider. If material is shared by colliders, it will duplicate the material and assign it to the collider.
JavaScript
// Makes the collider act like ice. using UnityEngine; import UnityEngine |
