Add Force: Difference between revisions

No edit summary
m (Add related section)
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
== Inputs ==
== Inputs ==


* {{Value|o|Object}}: The object you want to apply force to.
* {{Port|o|Object}}: The object you want to apply force to.
* {{Value|v|Force}}: The force to apply to that object.
* {{Port|v|Force}}: The force to apply to that object.
* {{Value|v|Apply At}}: Where on the object you want to apply the force, it's applied at the center of mass by default.
* {{Port|v|Apply At}}: Where on the object you want to apply the force, it's applied at the center of mass by default.
* {{Value|v|Torque}}: The rotational equivalent of a linear force, changing the object's rotational motion.
* {{Port|v|Torque}}: The rotational equivalent of a linear force, changing the object's rotational motion.


== Notes ==
== Notes ==


* A torque force applied on the first frame, or the same frame that an object is created, seems to have no effect. A normal force works just fine, and torque forces work just fine after the first frame.
* A torque force applied on the first frame, or the same frame that an object is created, seems to have no effect. A normal force works just fine, and torque forces work just fine after the first frame.
== Related ==
* [[Set Velocity]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 04:07, 14 June 2025

Adds a force and/or a torque to an object.

Add Force
Add Force.png
TypeScript block
ColliderNone
FolderPhysics
Ports
Inputs Before
Object
Force
Apply At
Torque
Outputs After

Inputs

  • Object: The object you want to apply force to.
  • Force: The force to apply to that object.
  • Apply At: Where on the object you want to apply the force, it's applied at the center of mass by default.
  • Torque: The rotational equivalent of a linear force, changing the object's rotational motion.

Notes

  • A torque force applied on the first frame, or the same frame that an object is created, seems to have no effect. A normal force works just fine, and torque forces work just fine after the first frame.

Related