Add Force: Difference between revisions

(Created page with "Adds a force and/or a torque to an object. /uploads/Add Force.png == 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 sa...")
 
m (Add related section)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Adds a force and/or a torque to an object.
{{Block
[[width=336px,alt=Add Force|/uploads/Add Force.png]]
|image=Add Force.png
|type=s
|folder=physics
|input1={{Port|e|Before}}
|input2={{Port|o}}
|input3={{Port|v|Force}}
|input4={{Port|v|Apply At}}
|input5={{Port|v|Torque}}
|output1={{Port|e|After}}
}}
 
Adds a force and/or a torque to an [[object]].


== Inputs ==
== Inputs ==
* Object: The object you want to apply force to.
 
* Force: The force to apply to that object.
* {{Port|o|Object}}: The object you want to apply force to.
* Apply at: Where on the object you want to apply the force, it's applied at the center of mass by default.
* {{Port|v|Force}}: The force to apply to that object.
* Torque: The rotational equivalent of a linear force, changing the object's rotational motion.
* {{Port|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|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. The reason is still unknown, perhaps some weird bug in Bullet Physics?)
* 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