Skip to main content

Object::setPhysicsParams

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

Syntax

```js 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

```js // todo ```

See also