PhysicMaterial
extends AssetObject
The PhysicMaterial class describes how objects handle collisions (friction, bouncing).
You can obtain a PhysicMaterial object in the following ways:
Copy the resource ID:

Load the PhysicMaterial resource based on the resource ID:
typeScript
let obj = new GameObject();
let animation = obj.AddComponent<Animation>(Animation);
let uuid = "BE9A9E258BF04E5D0F9B5331E8024585";
let asset = Resources.Load<PhysicMaterial>(PhysicMaterial, uuid);Instance Properties
PhysicMaterial.bounciness : number |
| The surface elasticity coefficient of the physics material. |
PhysicMaterial.dynamicFriction : number |
| Dynamic friction of a physics material. |
PhysicMaterial.staticFriction : number |
| Static friction coefficient. |
PhysicMaterial.frictionCombine : PhysicMaterialCombine |
| The combination mode of friction between objects. |
PhysicMaterial.bounceCombine : PhysicMaterialCombine |
| The combination mode of elastic collision forces between objects. |
Instance Method
PhysicMaterial.ructor ( handle : IntPtr? ) : ructor(IntPtr? |
