File: PhysicalBone.xml

package info (click to toggle)
godot 3.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 270,588 kB
  • sloc: cpp: 971,579; ansic: 617,953; xml: 80,302; asm: 17,498; cs: 14,559; python: 11,744; java: 9,681; javascript: 4,654; pascal: 1,176; sh: 896; objc: 529; makefile: 176
file content (77 lines) | stat: -rw-r--r-- 2,933 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PhysicalBone" inherits="PhysicsBody" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
	</brief_description>
	<description>
		[b]Warning:[/b] With a non-uniform scale this node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change the size(s) of its collision shape(s) instead.
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="apply_central_impulse">
			<return type="void" />
			<argument index="0" name="impulse" type="Vector3" />
			<description>
			</description>
		</method>
		<method name="apply_impulse">
			<return type="void" />
			<argument index="0" name="position" type="Vector3" />
			<argument index="1" name="impulse" type="Vector3" />
			<description>
			</description>
		</method>
		<method name="get_bone_id" qualifiers="const">
			<return type="int" />
			<description>
			</description>
		</method>
		<method name="get_simulate_physics">
			<return type="bool" />
			<description>
			</description>
		</method>
		<method name="is_simulating_physics">
			<return type="bool" />
			<description>
			</description>
		</method>
		<method name="is_static_body">
			<return type="bool" />
			<description>
			</description>
		</method>
	</methods>
	<members>
		<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 )">
		</member>
		<member name="bounce" type="float" setter="set_bounce" getter="get_bounce" default="0.0">
		</member>
		<member name="friction" type="float" setter="set_friction" getter="get_friction" default="1.0">
		</member>
		<member name="gravity_scale" type="float" setter="set_gravity_scale" getter="get_gravity_scale" default="1.0">
		</member>
		<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 )">
		</member>
		<member name="joint_type" type="int" setter="set_joint_type" getter="get_joint_type" enum="PhysicalBone.JointType" default="0">
		</member>
		<member name="mass" type="float" setter="set_mass" getter="get_mass" default="1.0">
		</member>
		<member name="weight" type="float" setter="set_weight" getter="get_weight" default="9.8">
		</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>