User Tools

Site Tools


ixe:irpl:unit:addphysicsforce

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ixe:irpl:unit:addphysicsforce [2025/01/07 17:58] – created - external edit 127.0.0.1ixe:irpl:unit:addphysicsforce [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 5: Line 5:
  
 ===== Description ===== ===== Description =====
-Adds a physics force to a unit containing part.  Force is V2. ForceOrImpulse is a bool.+Adds a physics force to a unit containing part.  Force is V2 representing the x and y components of the applied force. ForceOrImpulse is a bool; if false, the applied force is equal to the amount needed to accelerate the unit by "force" pixels/second. If true, the applied force is much weaker.
  
 +A more in-depth explanation of force vs impulse can be found here: [[https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Rigidbody.AddForce.html|Rigidbody.AddForce]]
 ===== Examples ===== ===== Examples =====
-<code irpl>+<code 4rpl>
 </code> </code>
ixe/irpl/unit/addphysicsforce.1736272739.txt.gz · Last modified: 2025/02/14 14:56 (external edit)