Skip to main content

Entity::applyForceToCenterOfMass

p6/relative - makes the xyz force not relative to world coords, but to something else
p7/highForce - setting false will make the force really low

Syntax​

entity.applyForceToCenterOfMass(forceType, x, y, z, p5, isRel, highForce, p8);

Required Arguments​

  • forceType: int
  • x: float
  • y: float
  • z: float
  • p5: Boolean
  • isRel: Boolean
  • highForce: Boolean
  • p8: Boolean

Return value​

  • Undefined

Example​

// todo