|
@@ -1,10 +1,10 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
-<class name="PhysicsServer" inherits="Object" version="4.0">
|
|
|
|
|
|
+<class name="PhysicsServer3D" inherits="Object" version="4.0">
|
|
<brief_description>
|
|
<brief_description>
|
|
Server interface for low-level physics access.
|
|
Server interface for low-level physics access.
|
|
</brief_description>
|
|
</brief_description>
|
|
<description>
|
|
<description>
|
|
- PhysicsServer is the server responsible for all 3D physics. It can create many kinds of physics objects, but does not insert them on the node tree.
|
|
|
|
|
|
+ PhysicsServer3D is the server responsible for all 3D physics. It can create many kinds of physics objects, but does not insert them on the node tree.
|
|
</description>
|
|
</description>
|
|
<tutorials>
|
|
<tutorials>
|
|
</tutorials>
|
|
</tutorials>
|
|
@@ -48,7 +48,7 @@
|
|
<return type="RID">
|
|
<return type="RID">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Creates an [Area].
|
|
|
|
|
|
+ Creates an [Area3D].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="area_get_object_instance_id" qualifiers="const">
|
|
<method name="area_get_object_instance_id" qualifiers="const">
|
|
@@ -65,7 +65,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="area" type="RID">
|
|
<argument index="0" name="area" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.AreaParameter">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.AreaParameter">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Returns an area parameter value. A list of available parameters is on the [enum AreaParameter] constants.
|
|
Returns an area parameter value. A list of available parameters is on the [enum AreaParameter] constants.
|
|
@@ -112,7 +112,7 @@
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="area_get_space_override_mode" qualifiers="const">
|
|
<method name="area_get_space_override_mode" qualifiers="const">
|
|
- <return type="int" enum="PhysicsServer.AreaSpaceOverrideMode">
|
|
|
|
|
|
+ <return type="int" enum="PhysicsServer3D.AreaSpaceOverrideMode">
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="area" type="RID">
|
|
<argument index="0" name="area" type="RID">
|
|
</argument>
|
|
</argument>
|
|
@@ -216,7 +216,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="area" type="RID">
|
|
<argument index="0" name="area" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.AreaParameter">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.AreaParameter">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="Variant">
|
|
<argument index="2" name="value" type="Variant">
|
|
</argument>
|
|
</argument>
|
|
@@ -289,7 +289,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="area" type="RID">
|
|
<argument index="0" name="area" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="mode" type="int" enum="PhysicsServer.AreaSpaceOverrideMode">
|
|
|
|
|
|
+ <argument index="1" name="mode" type="int" enum="PhysicsServer3D.AreaSpaceOverrideMode">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Sets the space override mode for the area. The modes are described in the [enum AreaSpaceOverrideMode] constants.
|
|
Sets the space override mode for the area. The modes are described in the [enum AreaSpaceOverrideMode] constants.
|
|
@@ -421,7 +421,7 @@
|
|
<method name="body_create">
|
|
<method name="body_create">
|
|
<return type="RID">
|
|
<return type="RID">
|
|
</return>
|
|
</return>
|
|
- <argument index="0" name="mode" type="int" enum="PhysicsServer.BodyMode" default="2">
|
|
|
|
|
|
+ <argument index="0" name="mode" type="int" enum="PhysicsServer3D.BodyMode" default="2">
|
|
</argument>
|
|
</argument>
|
|
<argument index="1" name="init_sleeping" type="bool" default="false">
|
|
<argument index="1" name="init_sleeping" type="bool" default="false">
|
|
</argument>
|
|
</argument>
|
|
@@ -449,12 +449,12 @@
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="body_get_direct_state">
|
|
<method name="body_get_direct_state">
|
|
- <return type="PhysicsDirectBodyState">
|
|
|
|
|
|
+ <return type="PhysicsDirectBodyState3D">
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Returns the [PhysicsDirectBodyState] of the body.
|
|
|
|
|
|
+ Returns the [PhysicsDirectBodyState3D] of the body.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="body_get_kinematic_safe_margin" qualifiers="const">
|
|
<method name="body_get_kinematic_safe_margin" qualifiers="const">
|
|
@@ -475,7 +475,7 @@
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="body_get_mode" qualifiers="const">
|
|
<method name="body_get_mode" qualifiers="const">
|
|
- <return type="int" enum="PhysicsServer.BodyMode">
|
|
|
|
|
|
+ <return type="int" enum="PhysicsServer3D.BodyMode">
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
@@ -497,7 +497,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.BodyParameter">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.BodyParameter">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Returns the value of a body parameter. A list of available parameters is on the [enum BodyParameter] constants.
|
|
Returns the value of a body parameter. A list of available parameters is on the [enum BodyParameter] constants.
|
|
@@ -548,7 +548,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="state" type="int" enum="PhysicsServer.BodyState">
|
|
|
|
|
|
+ <argument index="1" name="state" type="int" enum="PhysicsServer3D.BodyState">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Returns a body state.
|
|
Returns a body state.
|
|
@@ -559,7 +559,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="axis" type="int" enum="PhysicsServer.BodyAxis">
|
|
|
|
|
|
+ <argument index="1" name="axis" type="int" enum="PhysicsServer3D.BodyAxis">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
</description>
|
|
</description>
|
|
@@ -619,7 +619,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="axis" type="int" enum="PhysicsServer.BodyAxis">
|
|
|
|
|
|
+ <argument index="1" name="axis" type="int" enum="PhysicsServer3D.BodyAxis">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="lock" type="bool">
|
|
<argument index="2" name="lock" type="bool">
|
|
</argument>
|
|
</argument>
|
|
@@ -712,7 +712,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="mode" type="int" enum="PhysicsServer.BodyMode">
|
|
|
|
|
|
+ <argument index="1" name="mode" type="int" enum="PhysicsServer3D.BodyMode">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Sets the body mode, from one of the [enum BodyMode] constants.
|
|
Sets the body mode, from one of the [enum BodyMode] constants.
|
|
@@ -734,7 +734,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.BodyParameter">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.BodyParameter">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="float">
|
|
<argument index="2" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -807,7 +807,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="body" type="RID">
|
|
<argument index="0" name="body" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="state" type="int" enum="PhysicsServer.BodyState">
|
|
|
|
|
|
+ <argument index="1" name="state" type="int" enum="PhysicsServer3D.BodyState">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="Variant">
|
|
<argument index="2" name="value" type="Variant">
|
|
</argument>
|
|
</argument>
|
|
@@ -820,7 +820,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.ConeTwistJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.ConeTwistJointParam">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a cone_twist_joint parameter (see [enum ConeTwistJointParam] constants).
|
|
Gets a cone_twist_joint parameter (see [enum ConeTwistJointParam] constants).
|
|
@@ -831,7 +831,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.ConeTwistJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.ConeTwistJointParam">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="float">
|
|
<argument index="2" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -845,7 +845,7 @@
|
|
<argument index="0" name="rid" type="RID">
|
|
<argument index="0" name="rid" type="RID">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Destroys any of the objects created by PhysicsServer. If the [RID] passed is not one of the objects that can be created by PhysicsServer, an error will be sent to the console.
|
|
|
|
|
|
+ Destroys any of the objects created by PhysicsServer3D. If the [RID] passed is not one of the objects that can be created by PhysicsServer3D, an error will be sent to the console.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="generic_6dof_joint_get_flag">
|
|
<method name="generic_6dof_joint_get_flag">
|
|
@@ -855,7 +855,7 @@
|
|
</argument>
|
|
</argument>
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="2" name="flag" type="int" enum="PhysicsServer.G6DOFJointAxisFlag">
|
|
|
|
|
|
+ <argument index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants).
|
|
Gets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants).
|
|
@@ -868,7 +868,7 @@
|
|
</argument>
|
|
</argument>
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="2" name="param" type="int" enum="PhysicsServer.G6DOFJointAxisParam">
|
|
|
|
|
|
+ <argument index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] constants).
|
|
Gets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] constants).
|
|
@@ -881,7 +881,7 @@
|
|
</argument>
|
|
</argument>
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="2" name="flag" type="int" enum="PhysicsServer.G6DOFJointAxisFlag">
|
|
|
|
|
|
+ <argument index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag">
|
|
</argument>
|
|
</argument>
|
|
<argument index="3" name="enable" type="bool">
|
|
<argument index="3" name="enable" type="bool">
|
|
</argument>
|
|
</argument>
|
|
@@ -896,7 +896,7 @@
|
|
</argument>
|
|
</argument>
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
<argument index="1" name="axis" type="int" enum="Vector3.Axis">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="2" name="param" type="int" enum="PhysicsServer.G6DOFJointAxisParam">
|
|
|
|
|
|
+ <argument index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam">
|
|
</argument>
|
|
</argument>
|
|
<argument index="3" name="value" type="float">
|
|
<argument index="3" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -907,7 +907,7 @@
|
|
<method name="get_process_info">
|
|
<method name="get_process_info">
|
|
<return type="int">
|
|
<return type="int">
|
|
</return>
|
|
</return>
|
|
- <argument index="0" name="process_info" type="int" enum="PhysicsServer.ProcessInfo">
|
|
|
|
|
|
+ <argument index="0" name="process_info" type="int" enum="PhysicsServer3D.ProcessInfo">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Returns an Info defined by the [enum ProcessInfo] input given.
|
|
Returns an Info defined by the [enum ProcessInfo] input given.
|
|
@@ -918,7 +918,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="flag" type="int" enum="PhysicsServer.HingeJointFlag">
|
|
|
|
|
|
+ <argument index="1" name="flag" type="int" enum="PhysicsServer3D.HingeJointFlag">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a hinge_joint flag (see [enum HingeJointFlag] constants).
|
|
Gets a hinge_joint flag (see [enum HingeJointFlag] constants).
|
|
@@ -929,7 +929,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.HingeJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.HingeJointParam">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a hinge_joint parameter (see [enum HingeJointParam]).
|
|
Gets a hinge_joint parameter (see [enum HingeJointParam]).
|
|
@@ -940,7 +940,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="flag" type="int" enum="PhysicsServer.HingeJointFlag">
|
|
|
|
|
|
+ <argument index="1" name="flag" type="int" enum="PhysicsServer3D.HingeJointFlag">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="enabled" type="bool">
|
|
<argument index="2" name="enabled" type="bool">
|
|
</argument>
|
|
</argument>
|
|
@@ -953,7 +953,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.HingeJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.HingeJointParam">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="float">
|
|
<argument index="2" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -973,7 +973,7 @@
|
|
<argument index="3" name="local_ref_B" type="Transform">
|
|
<argument index="3" name="local_ref_B" type="Transform">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Creates a [ConeTwistJoint].
|
|
|
|
|
|
+ Creates a [ConeTwistJoint3D].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_create_generic_6dof">
|
|
<method name="joint_create_generic_6dof">
|
|
@@ -988,7 +988,7 @@
|
|
<argument index="3" name="local_ref_B" type="Transform">
|
|
<argument index="3" name="local_ref_B" type="Transform">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Creates a [Generic6DOFJoint].
|
|
|
|
|
|
+ Creates a [Generic6DOFJoint3D].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_create_hinge">
|
|
<method name="joint_create_hinge">
|
|
@@ -1003,7 +1003,7 @@
|
|
<argument index="3" name="hinge_B" type="Transform">
|
|
<argument index="3" name="hinge_B" type="Transform">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Creates a [HingeJoint].
|
|
|
|
|
|
+ Creates a [HingeJoint3D].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_create_pin">
|
|
<method name="joint_create_pin">
|
|
@@ -1018,7 +1018,7 @@
|
|
<argument index="3" name="local_B" type="Vector3">
|
|
<argument index="3" name="local_B" type="Vector3">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Creates a [PinJoint].
|
|
|
|
|
|
+ Creates a [PinJoint3D].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_create_slider">
|
|
<method name="joint_create_slider">
|
|
@@ -1033,7 +1033,7 @@
|
|
<argument index="3" name="local_ref_B" type="Transform">
|
|
<argument index="3" name="local_ref_B" type="Transform">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Creates a [SliderJoint].
|
|
|
|
|
|
+ Creates a [SliderJoint3D].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_get_solver_priority" qualifiers="const">
|
|
<method name="joint_get_solver_priority" qualifiers="const">
|
|
@@ -1042,16 +1042,16 @@
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Gets the priority value of the Joint.
|
|
|
|
|
|
+ Gets the priority value of the Joint3D.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_get_type" qualifiers="const">
|
|
<method name="joint_get_type" qualifiers="const">
|
|
- <return type="int" enum="PhysicsServer.JointType">
|
|
|
|
|
|
+ <return type="int" enum="PhysicsServer3D.JointType">
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Returns the type of the Joint.
|
|
|
|
|
|
+ Returns the type of the Joint3D.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="joint_set_solver_priority">
|
|
<method name="joint_set_solver_priority">
|
|
@@ -1062,7 +1062,7 @@
|
|
<argument index="1" name="priority" type="int">
|
|
<argument index="1" name="priority" type="int">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Sets the priority value of the Joint.
|
|
|
|
|
|
+ Sets the priority value of the Joint3D.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="pin_joint_get_local_a" qualifiers="const">
|
|
<method name="pin_joint_get_local_a" qualifiers="const">
|
|
@@ -1088,7 +1088,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.PinJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.PinJointParam">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a pin_joint parameter (see [enum PinJointParam] constants).
|
|
Gets a pin_joint parameter (see [enum PinJointParam] constants).
|
|
@@ -1121,7 +1121,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.PinJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.PinJointParam">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="float">
|
|
<argument index="2" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -1141,7 +1141,7 @@
|
|
<method name="shape_create">
|
|
<method name="shape_create">
|
|
<return type="RID">
|
|
<return type="RID">
|
|
</return>
|
|
</return>
|
|
- <argument index="0" name="type" type="int" enum="PhysicsServer.ShapeType">
|
|
|
|
|
|
+ <argument index="0" name="type" type="int" enum="PhysicsServer3D.ShapeType">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Creates a shape of a type from [enum ShapeType]. Does not assign it to a body or an area. To do so, you must use [method area_set_shape] or [method body_set_shape].
|
|
Creates a shape of a type from [enum ShapeType]. Does not assign it to a body or an area. To do so, you must use [method area_set_shape] or [method body_set_shape].
|
|
@@ -1157,7 +1157,7 @@
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="shape_get_type" qualifiers="const">
|
|
<method name="shape_get_type" qualifiers="const">
|
|
- <return type="int" enum="PhysicsServer.ShapeType">
|
|
|
|
|
|
+ <return type="int" enum="PhysicsServer3D.ShapeType">
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="shape" type="RID">
|
|
<argument index="0" name="shape" type="RID">
|
|
</argument>
|
|
</argument>
|
|
@@ -1181,7 +1181,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.SliderJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.SliderJointParam">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Gets a slider_joint parameter (see [enum SliderJointParam] constants).
|
|
Gets a slider_joint parameter (see [enum SliderJointParam] constants).
|
|
@@ -1192,7 +1192,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="joint" type="RID">
|
|
<argument index="0" name="joint" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.SliderJointParam">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.SliderJointParam">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="float">
|
|
<argument index="2" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -1208,12 +1208,12 @@
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="space_get_direct_state">
|
|
<method name="space_get_direct_state">
|
|
- <return type="PhysicsDirectSpaceState">
|
|
|
|
|
|
+ <return type="PhysicsDirectSpaceState3D">
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="space" type="RID">
|
|
<argument index="0" name="space" type="RID">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Returns the state of a space, a [PhysicsDirectSpaceState]. This object can be used to make collision/intersection queries.
|
|
|
|
|
|
+ Returns the state of a space, a [PhysicsDirectSpaceState3D]. This object can be used to make collision/intersection queries.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="space_get_param" qualifiers="const">
|
|
<method name="space_get_param" qualifiers="const">
|
|
@@ -1221,7 +1221,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="space" type="RID">
|
|
<argument index="0" name="space" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.SpaceParameter">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.SpaceParameter">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
Returns the value of a space parameter.
|
|
Returns the value of a space parameter.
|
|
@@ -1252,7 +1252,7 @@
|
|
</return>
|
|
</return>
|
|
<argument index="0" name="space" type="RID">
|
|
<argument index="0" name="space" type="RID">
|
|
</argument>
|
|
</argument>
|
|
- <argument index="1" name="param" type="int" enum="PhysicsServer.SpaceParameter">
|
|
|
|
|
|
+ <argument index="1" name="param" type="int" enum="PhysicsServer3D.SpaceParameter">
|
|
</argument>
|
|
</argument>
|
|
<argument index="2" name="value" type="float">
|
|
<argument index="2" name="value" type="float">
|
|
</argument>
|
|
</argument>
|
|
@@ -1263,19 +1263,19 @@
|
|
</methods>
|
|
</methods>
|
|
<constants>
|
|
<constants>
|
|
<constant name="JOINT_PIN" value="0" enum="JointType">
|
|
<constant name="JOINT_PIN" value="0" enum="JointType">
|
|
- The [Joint] is a [PinJoint].
|
|
|
|
|
|
+ The [Joint3D] is a [PinJoint3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="JOINT_HINGE" value="1" enum="JointType">
|
|
<constant name="JOINT_HINGE" value="1" enum="JointType">
|
|
- The [Joint] is a [HingeJoint].
|
|
|
|
|
|
+ The [Joint3D] is a [HingeJoint3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="JOINT_SLIDER" value="2" enum="JointType">
|
|
<constant name="JOINT_SLIDER" value="2" enum="JointType">
|
|
- The [Joint] is a [SliderJoint].
|
|
|
|
|
|
+ The [Joint3D] is a [SliderJoint3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="JOINT_CONE_TWIST" value="3" enum="JointType">
|
|
<constant name="JOINT_CONE_TWIST" value="3" enum="JointType">
|
|
- The [Joint] is a [ConeTwistJoint].
|
|
|
|
|
|
+ The [Joint3D] is a [ConeTwistJoint3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="JOINT_6DOF" value="4" enum="JointType">
|
|
<constant name="JOINT_6DOF" value="4" enum="JointType">
|
|
- The [Joint] is a [Generic6DOFJoint].
|
|
|
|
|
|
+ The [Joint3D] is a [Generic6DOFJoint3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="PIN_JOINT_BIAS" value="0" enum="PinJointParam">
|
|
<constant name="PIN_JOINT_BIAS" value="0" enum="PinJointParam">
|
|
The strength with which the pinned objects try to stay in positional relation to each other.
|
|
The strength with which the pinned objects try to stay in positional relation to each other.
|
|
@@ -1286,7 +1286,7 @@
|
|
The higher, the stronger.
|
|
The higher, the stronger.
|
|
</constant>
|
|
</constant>
|
|
<constant name="PIN_JOINT_IMPULSE_CLAMP" value="2" enum="PinJointParam">
|
|
<constant name="PIN_JOINT_IMPULSE_CLAMP" value="2" enum="PinJointParam">
|
|
- If above 0, this value is the maximum value for an impulse that this Joint puts on its ends.
|
|
|
|
|
|
+ If above 0, this value is the maximum value for an impulse that this Joint3D puts on its ends.
|
|
</constant>
|
|
</constant>
|
|
<constant name="HINGE_JOINT_BIAS" value="0" enum="HingeJointParam">
|
|
<constant name="HINGE_JOINT_BIAS" value="0" enum="HingeJointParam">
|
|
The speed with which the two bodies get pulled together when they move in different directions.
|
|
The speed with which the two bodies get pulled together when they move in different directions.
|
|
@@ -1389,7 +1389,7 @@
|
|
<constant name="CONE_TWIST_JOINT_SWING_SPAN" value="0" enum="ConeTwistJointParam">
|
|
<constant name="CONE_TWIST_JOINT_SWING_SPAN" value="0" enum="ConeTwistJointParam">
|
|
Swing is rotation from side to side, around the axis perpendicular to the twist axis.
|
|
Swing is rotation from side to side, around the axis perpendicular to the twist axis.
|
|
The swing span defines, how much rotation will not get corrected along the swing axis.
|
|
The swing span defines, how much rotation will not get corrected along the swing axis.
|
|
- Could be defined as looseness in the [ConeTwistJoint].
|
|
|
|
|
|
+ Could be defined as looseness in the [ConeTwistJoint3D].
|
|
If below 0.05, this behavior is locked.
|
|
If below 0.05, this behavior is locked.
|
|
</constant>
|
|
</constant>
|
|
<constant name="CONE_TWIST_JOINT_TWIST_SPAN" value="1" enum="ConeTwistJointParam">
|
|
<constant name="CONE_TWIST_JOINT_TWIST_SPAN" value="1" enum="ConeTwistJointParam">
|
|
@@ -1401,7 +1401,7 @@
|
|
The higher, the faster.
|
|
The higher, the faster.
|
|
</constant>
|
|
</constant>
|
|
<constant name="CONE_TWIST_JOINT_SOFTNESS" value="3" enum="ConeTwistJointParam">
|
|
<constant name="CONE_TWIST_JOINT_SOFTNESS" value="3" enum="ConeTwistJointParam">
|
|
- The ease with which the Joint twists, if it's too low, it takes more force to twist the joint.
|
|
|
|
|
|
+ The ease with which the Joint3D twists, if it's too low, it takes more force to twist the joint.
|
|
</constant>
|
|
</constant>
|
|
<constant name="CONE_TWIST_JOINT_RELAXATION" value="4" enum="ConeTwistJointParam">
|
|
<constant name="CONE_TWIST_JOINT_RELAXATION" value="4" enum="ConeTwistJointParam">
|
|
Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
|
|
Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
|
|
@@ -1467,31 +1467,31 @@
|
|
If [code]set[/code] there is a linear motor on this axis that targets a specific velocity.
|
|
If [code]set[/code] there is a linear motor on this axis that targets a specific velocity.
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_PLANE" value="0" enum="ShapeType">
|
|
<constant name="SHAPE_PLANE" value="0" enum="ShapeType">
|
|
- The [Shape] is a [WorldMarginShape].
|
|
|
|
|
|
+ The [Shape3D] is a [WorldMarginShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_RAY" value="1" enum="ShapeType">
|
|
<constant name="SHAPE_RAY" value="1" enum="ShapeType">
|
|
- The [Shape] is a [RayShape].
|
|
|
|
|
|
+ The [Shape3D] is a [RayShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_SPHERE" value="2" enum="ShapeType">
|
|
<constant name="SHAPE_SPHERE" value="2" enum="ShapeType">
|
|
- The [Shape] is a [SphereShape].
|
|
|
|
|
|
+ The [Shape3D] is a [SphereShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_BOX" value="3" enum="ShapeType">
|
|
<constant name="SHAPE_BOX" value="3" enum="ShapeType">
|
|
- The [Shape] is a [BoxShape].
|
|
|
|
|
|
+ The [Shape3D] is a [BoxShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_CAPSULE" value="4" enum="ShapeType">
|
|
<constant name="SHAPE_CAPSULE" value="4" enum="ShapeType">
|
|
- The [Shape] is a [CapsuleShape].
|
|
|
|
|
|
+ The [Shape3D] is a [CapsuleShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_CYLINDER" value="5" enum="ShapeType">
|
|
<constant name="SHAPE_CYLINDER" value="5" enum="ShapeType">
|
|
- The [Shape] is a [CylinderShape].
|
|
|
|
|
|
+ The [Shape3D] is a [CylinderShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_CONVEX_POLYGON" value="6" enum="ShapeType">
|
|
<constant name="SHAPE_CONVEX_POLYGON" value="6" enum="ShapeType">
|
|
- The [Shape] is a [ConvexPolygonShape].
|
|
|
|
|
|
+ The [Shape3D] is a [ConvexPolygonShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_CONCAVE_POLYGON" value="7" enum="ShapeType">
|
|
<constant name="SHAPE_CONCAVE_POLYGON" value="7" enum="ShapeType">
|
|
- The [Shape] is a [ConcavePolygonShape].
|
|
|
|
|
|
+ The [Shape3D] is a [ConcavePolygonShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_HEIGHTMAP" value="8" enum="ShapeType">
|
|
<constant name="SHAPE_HEIGHTMAP" value="8" enum="ShapeType">
|
|
- The [Shape] is a [HeightMapShape].
|
|
|
|
|
|
+ The [Shape3D] is a [HeightMapShape3D].
|
|
</constant>
|
|
</constant>
|
|
<constant name="SHAPE_CUSTOM" value="9" enum="ShapeType">
|
|
<constant name="SHAPE_CUSTOM" value="9" enum="ShapeType">
|
|
This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.
|
|
This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.
|