Object::setPhysicsParams

From RAGE Multiplayer Wiki
Revision as of 23:18, 12 December 2025 by Mos (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Mass/weight units unknown
Buoyancy affects how much the object floats. set to at least 2.0f to make an object float

Syntax

object.setPhysicsParams(mass, gravityFactor, linearC, linearV, linearV2, angularC, angularV, angularV2, p9, maxAngSpeed, buoyancyFactor);

Required Arguments

  • mass: float
  • gravityFactor: float
  • linearC: float
  • linearV: float
  • linearV2: float
  • angularC: float
  • angularV: float
  • angularV2: float
  • p9: float
  • maxAngSpeed: float
  • buoyancyFactor: float

Return value

  • Undefined

Example

// todo

See also

  • [[Object::disableGlow|mp.game.object.disableGlow