Creates a new physics material.
OptionaldynamicFriction: number
Sets 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: number
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.
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.
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.
Returns a universally unique identifier of this resource.
Duplicates the resource and creates a unique UUID for the duplicated resource.
The duplicated resource or null, if the duplication failed.
Virtual
Method called by RSX to perform actions required after the creation of the resource.
Forcefully unloads the resource.
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.