ll.SetPhysicsMaterial

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.

Example

ll.SetPhysicsMaterial(
  1,
  3.14,
  3.14,
  3.14,
  3.14
)
{
  "def": "func",
  "desc": "Sets the selected parameters of the object's physics behavior.\nMaterialBits 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.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetPhysicsMaterial",
  "name": "SetPhysicsMaterial",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "MaterialBits",
          "desc": "A bitmask specifying which of the parameters in the other arguments should be applied to the object.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "GravityMultiplier",
          "desc": "",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Restitution",
          "desc": "",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Friction",
          "desc": "",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Density",
          "desc": "",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll