Add Force: Difference between revisions
(Updated the page) |
-u ndefined- (talk | contribs) m (Add related section) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
|input4={{Port|v|Apply At}} | |input4={{Port|v|Apply At}} | ||
|input5={{Port|v|Torque}} | |input5={{Port|v|Torque}} | ||
|output1={{Port|e|After}} | |||
}} | }} | ||
Adds a force and/or a torque to an object. | |||
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 | * {{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 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
Add Force
Type | Script block |
Collider | None |
Folder | Physics |
Ports | |
---|---|
Inputs | Before Object Force Apply At Torque |
Outputs | After |
Adds a force and/or a torque to an object.
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.