summaryrefslogtreecommitdiff
path: root/doc/classes/VehicleBody.xml
blob: 77916a7e9f9302ca16d20f5c382e65c14316c1b3 (plain)
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
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VehicleBody" inherits="PhysicsBody" category="Core" version="3.0-beta">
	<brief_description>
	</brief_description>
	<description>
	</description>
	<tutorials>
	</tutorials>
	<demos>
	</demos>
	<methods>
		<method name="get_linear_velocity" qualifiers="const">
			<return type="Vector3">
			</return>
			<description>
				Returns the VehicleBody's velocity vector. To get the absolute speed in scalar value, get the length of the return vector in pixels/second. Example:
				[codeblock]
				# vehicle is an instance of VehicleBody
				var speed = vehicle.get_linear_velocity().length()
				[/codeblock]
			</description>
		</method>
	</methods>
	<members>
		<member name="brake" type="float" setter="set_brake" getter="get_brake">
		</member>
		<member name="engine_force" type="float" setter="set_engine_force" getter="get_engine_force">
		</member>
		<member name="friction" type="float" setter="set_friction" getter="get_friction">
		</member>
		<member name="mass" type="float" setter="set_mass" getter="get_mass">
		</member>
		<member name="steering" type="float" setter="set_steering" getter="get_steering">
		</member>
	</members>
	<constants>
	</constants>
</class>