Object::setPhysicsParams: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
Known parameters: <br><br>p1 = weight, units unknown<br>p6 = object (downwards? (No shit, Sherlock...)) gravity<br><br>p11 = buoyancy, affects how much the object floats. set to at least 2.0f to make an object float
Mass/weight units unknown<br>Buoyancy affects how much the object floats. set to at least 2.0f to make an object float
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.setPhysicsParams(weight, p2, p3, p4, p5, gravity, p7, p8, p9, p10, buoyancy);</syntaxhighlight>
<syntaxhighlight lang="javascript">object.setPhysicsParams(mass, gravityFactor, linearC, linearV, linearV2, angularC, angularV, angularV2, p9, maxAngSpeed, buoyancyFactor);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''weight:''' float
*'''mass:''' float
*'''p2:''' float
*'''gravityFactor:''' float
*'''p3:''' float
*'''linearC:''' float
*'''p4:''' float
*'''linearV:''' float
*'''p5:''' float
*'''linearV2:''' float
*'''gravity:''' float
*'''angularC:''' float
*'''p7:''' float
*'''angularV:''' float
*'''p8:''' float
*'''angularV2:''' float
*'''p9:''' float
*'''p9:''' float
*'''p10:''' float
*'''maxAngSpeed:''' float
*'''buoyancy:''' float
*'''buoyancyFactor:''' float
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Latest revision as of 23:18, 12 December 2025

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