2018-05-12 07:38:00 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2021-04-26 11:14:51 +00:00
|
|
|
<class name="PhysicalBone" inherits="PhysicsBody" version="3.4">
|
2018-05-12 07:38:00 +00:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2019-12-17 10:43:07 +00:00
|
|
|
<method name="apply_central_impulse">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="impulse" type="Vector3" />
|
2019-12-17 10:43:07 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="apply_impulse">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="position" type="Vector3" />
|
|
|
|
<argument index="1" name="impulse" type="Vector3" />
|
2019-12-17 10:43:07 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2018-08-20 22:35:30 +00:00
|
|
|
<method name="get_bone_id" qualifiers="const">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="int" />
|
2018-08-20 22:35:30 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2018-05-28 12:53:15 +00:00
|
|
|
<method name="get_simulate_physics">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="bool" />
|
2018-05-28 12:53:15 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2018-05-12 07:38:00 +00:00
|
|
|
<method name="is_simulating_physics">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="bool" />
|
2018-05-12 07:38:00 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2018-05-28 12:53:15 +00:00
|
|
|
<method name="is_static_body">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="bool" />
|
2018-05-28 12:53:15 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2018-05-12 07:38:00 +00:00
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="body_offset" type="Transform" setter="set_body_offset" getter="get_body_offset" default="Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="bounce" type="float" setter="set_bounce" getter="get_bounce" default="0.0">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="friction" type="float" setter="set_friction" getter="get_friction" default="1.0">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="gravity_scale" type="float" setter="set_gravity_scale" getter="get_gravity_scale" default="1.0">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="joint_offset" type="Transform" setter="set_joint_offset" getter="get_joint_offset" default="Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="joint_type" type="int" setter="set_joint_type" getter="get_joint_type" enum="PhysicalBone.JointType" default="0">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="mass" type="float" setter="set_mass" getter="get_mass" default="1.0">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="weight" type="float" setter="set_weight" getter="get_weight" default="9.8">
|
2018-05-12 07:38:00 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="JOINT_TYPE_NONE" value="0" enum="JointType">
|
|
|
|
</constant>
|
|
|
|
<constant name="JOINT_TYPE_PIN" value="1" enum="JointType">
|
|
|
|
</constant>
|
|
|
|
<constant name="JOINT_TYPE_CONE" value="2" enum="JointType">
|
|
|
|
</constant>
|
|
|
|
<constant name="JOINT_TYPE_HINGE" value="3" enum="JointType">
|
|
|
|
</constant>
|
|
|
|
<constant name="JOINT_TYPE_SLIDER" value="4" enum="JointType">
|
|
|
|
</constant>
|
|
|
|
<constant name="JOINT_TYPE_6DOF" value="5" enum="JointType">
|
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|