Перейти к содержанию

Object::setPhysicsParams

Материал из RAGE MP Wiki Archive
Версия от 23:18, 12 декабря 2025; imported>Mos
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

Syntax

<syntaxhighlight lang="javascript">object.setPhysicsParams(mass, gravityFactor, linearC, linearV, linearV2, angularC, angularV, angularV2, p9, maxAngSpeed, buoyancyFactor);</syntaxhighlight>

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

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

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