llSetPhysicsMaterial
function ll.SetPhysicsMaterial(MaterialBits: number, GravityMultiplier: number, Restitution: number, Friction: number, Density: number)Sets the selected parameters of the object's physics behavior.
MaterialBits is a bitmask specifying which of the parameters in the other arguments should be applied to the object. GravityMultiplier, Restitution, Friction, and Density are the possible parameters to manipulate.
Parameters
-
MaterialBits(number) - A bitmask specifying which of the parameters in the other arguments should be applied to the object.
-
GravityMultiplier(number) -
Restitution(number) -
Friction(number) -
Density(number)
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.SetPhysicsMaterial().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llSetPhysicsMaterial