summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorsdfgeoff <sdfgeoff@gmail.com>2018-01-25 09:45:00 +0100
committerGeoffrey <geoffrey.irons@simedis.com>2018-02-15 16:42:24 +0100
commitcdd8334585a02ed3fe9766abe0e625d866f0b271 (patch)
tree2040d2f46820d8b74b16c114b4703990232fd483 /doc/classes
parentd516aab8fa6b64c914082888863c5a89b3fec574 (diff)
Exposed apply_torque_impulse to gdscript and added documentation for added apply_torque_impulse method
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RigidBody.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/RigidBody.xml b/doc/classes/RigidBody.xml
index 0afad89f4c..f3acd443b7 100644
--- a/doc/classes/RigidBody.xml
+++ b/doc/classes/RigidBody.xml
@@ -36,6 +36,15 @@
Apply a positioned impulse (which will be affected by the body mass and shape). This is the equivalent of hitting a billiard ball with a cue: a force that is applied once, and only once. Both the impulse and the position are in global coordinates, and the position is relative to the object's origin.
</description>
</method>
+ <method name="apply_torque_impulse">
+ <return type="void">
+ </return>
+ <argument index="1" name="impulse" type="Vector3">
+ </argument>
+ <description>
+ Apply a torque impulse (which will be affected by the body mass and shape). This will rotate the body around the passed in vector.
+ </description>
+ </method>
<method name="get_colliding_bodies" qualifiers="const">
<return type="Array">
</return>