Creates a new physics material.
OptionalstaticFriction: numberControls friction when two in-contact objects are not moving lateral to each other (for example how difficult is to get an object moving from a static state while it is in contact other object(s)).
OptionaldynamicFriction: numberSets dynamic friction of the material. Controls friction when two in-contact objects are moving lateral to each other (for example how quickly does an object slow down when sliding along another object).
Optionalrestitution: numberControls "bounciness" of an object during a collision. Value of 1 means the collision is elastic, and value of 0 means the value is inelastic. Must be in [0, 1] range.
OptionalisInternalConstructor: booleanControls friction when two in-contact objects are moving lateral to each other (for example how quickly does an object slow down when sliding along another object).
Returns a reference handle for this resource.
Determines if the resource is destroyed.
Returns the meta data of this resource.
Name of the resource. Use primarily for easier identification and not important to the engine itself.
Controls "bounciness" of an object during a collision. Value of 1 means the collision is elastic, and value of 0 means the value is inelastic. Must be in [0, 1] range.
Controls friction when two in-contact objects are not moving lateral to each other (for example how difficult it is to get an object moving from a static state while it is in contact with other object(s)).
Material that controls how two physical objects interact with each other. Materials of both objects are used during their interaction and their combined values are used.