RigidbodySetDensityOn this pageRigidbody.SetDensity(number density) Sets the mass based on the attached colliders assuming a constant density. Parameters: NameTypeDescriptiondensitynumber Usage ---@type Rigidbodylocal rigidbody;---@type numberlocal density;rigidbody.SetDensity(density)