Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Rigidbody
  5. addForce

addForce

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Add a force in X,Y,Z either in world direction or relative to the rigidbody itself

Parameters:

  • force
    • A string value
  • relative Optional
    • A boolean value

Example:

1
obj.addForce(force, relative)
Tags
Was this article helpful to you? Yes No

How can we help?