|
@@ -24867,13 +24867,15 @@ This method controls whether the position between two cached points is interpola
|
|
</constant>
|
|
</constant>
|
|
<constant name="BODY_PARAM_MASS" value="2">
|
|
<constant name="BODY_PARAM_MASS" value="2">
|
|
</constant>
|
|
</constant>
|
|
- <constant name="BODY_PARAM_GRAVITY_SCALE" value="3">
|
|
|
|
|
|
+ <constant name="BODY_PARAM_INERTIA" value="3">
|
|
</constant>
|
|
</constant>
|
|
- <constant name="BODY_PARAM_LINEAR_DAMP" value="4">
|
|
|
|
|
|
+ <constant name="BODY_PARAM_GRAVITY_SCALE" value="4">
|
|
</constant>
|
|
</constant>
|
|
- <constant name="BODY_PARAM_ANGULAR_DAMP" value="5">
|
|
|
|
|
|
+ <constant name="BODY_PARAM_LINEAR_DAMP" value="5">
|
|
</constant>
|
|
</constant>
|
|
- <constant name="BODY_PARAM_MAX" value="6">
|
|
|
|
|
|
+ <constant name="BODY_PARAM_ANGULAR_DAMP" value="6">
|
|
|
|
+ </constant>
|
|
|
|
+ <constant name="BODY_PARAM_MAX" value="7">
|
|
</constant>
|
|
</constant>
|
|
<constant name="BODY_STATE_TRANSFORM" value="0">
|
|
<constant name="BODY_STATE_TRANSFORM" value="0">
|
|
</constant>
|
|
</constant>
|
|
@@ -30035,6 +30037,13 @@ This method controls whether the position between two cached points is interpola
|
|
Return the body mass.
|
|
Return the body mass.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
|
|
+ <method name="get_inertia" qualifiers="const">
|
|
|
|
+ <return type="float">
|
|
|
|
+ </return>
|
|
|
|
+ <description>
|
|
|
|
+ Return the body's moment of inertia. This is automatically computed from the mass and the shapes, so you can't set it. But at least you can find out what it's current value is...
|
|
|
|
+ </description>
|
|
|
|
+ </method>
|
|
<method name="set_weight">
|
|
<method name="set_weight">
|
|
<argument index="0" name="weight" type="float">
|
|
<argument index="0" name="weight" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -30238,12 +30247,14 @@ This method controls whether the position between two cached points is interpola
|
|
<argument index="0" name="torque" type="float">
|
|
<argument index="0" name="torque" type="float">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set a constant torque which will be applied to this body.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_applied_torque" qualifiers="const">
|
|
<method name="get_applied_torque" qualifiers="const">
|
|
<return type="float">
|
|
<return type="float">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return the torque which is being applied to this body.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_sleeping">
|
|
<method name="set_sleeping">
|