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) |