blob: 69d7b425cdf2db0bf5f731715877e7959e3bb2cb (
plain) (
blame)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleDriveTankControl Struct Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>PxVehicleDriveTankControl Struct Reference<br>
<small>
[<a class="el" href="group__vehicle.html">Vehicle</a>]</small>
</h1><!-- doxytag: class="PxVehicleDriveTankControl" -->The control inputs for a <a class="el" href="classPxVehicleDriveTank.html" title="Data structure with instanced dynamics data and configuration data of a tank.">PxVehicleDriveTank</a>.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxVehicleDriveTank_8h-source.html">PxVehicleDriveTank.h</a>></code>
<p>
<p>
<a href="structPxVehicleDriveTankControl-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c">Enum</a> { <br>
<a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c4d4d74266256f5785bff0ab396eb1b6a">eANALOG_INPUT_ACCEL</a> = 0,
<br>
<a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c0e0c1828cf31979089fa9a82c1da9d49">eANALOG_INPUT_BRAKE_LEFT</a>,
<br>
<a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c2bc6e1cf01b82577d18626f6b2186f2b">eANALOG_INPUT_BRAKE_RIGHT</a>,
<br>
<a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c5fd1badaa124dfe45b78ea77d41e5a88">eANALOG_INPUT_THRUST_LEFT</a>,
<br>
<a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5cf9fe3fceb9090bb618d8ecbc990034f3">eANALOG_INPUT_THRUST_RIGHT</a>,
<br>
<a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c1e723ae081f8a1849fab0baab509bd04">eMAX_NB_DRIVETANK_ANALOG_INPUTS</a>
<br>
}</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The control inputs for a <a class="el" href="classPxVehicleDriveTank.html" title="Data structure with instanced dynamics data and configuration data of a tank.">PxVehicleDriveTank</a>.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>The values of eANALOG_INPUT_THRUST_LEFT and eANALOG_INPUT_THRUST_RIGHT determine how much of the total available drive torque is diverted to the left and right wheels. These entries in the enumerated list represent the state of the left and right control sticks of a tank. The total available drive torque available is controlled by eANALOG_INPUT_ACCEL, which represents the state of the acceleration pedal and controls how much torque will be applied to the engine.<p>
To accelerate forwards eANALOG_INPUT_ACCEL must be greater than zero so that torque is applied to drive the engine, while eANALOG_INPUT_THRUST_LEFT and eANALOG_INPUT_THRUST_RIGHT must also be greater than zero to divert the available drive torque to the left and wheels. If eANALOG_INPUT_THRUST_LEFT > eANALOG_INPUT_THRUST_RIGHT the tank will turn to the right. If eANALOG_INPUT_THRUST_RIGHT > eANALOG_INPUT_THRUST_LEFT the tank will turn to the left.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDriveDynData.html#702f9f3b98ba914cb313383aef4b45d5" title="Set an analog control value to drive the vehicle.">PxVehicleDriveDynData::setAnalogInput</a>, <a class="el" href="classPxVehicleDriveDynData.html#9e1607b3b32f31cce5ac247e4bd485cb" title="Get the analog control value that has been applied to the vehicle.">PxVehicleDriveDynData::getAnalogInput</a> </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5c"></a><!-- doxytag: member="PxVehicleDriveTankControl::Enum" ref="13e9cce8dce77a82f7598c930d0c0c5c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPxVehicleDriveTankControl.html#13e9cce8dce77a82f7598c930d0c0c5c">PxVehicleDriveTankControl::Enum</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5c4d4d74266256f5785bff0ab396eb1b6a"></a><!-- doxytag: member="eANALOG_INPUT_ACCEL" ref="13e9cce8dce77a82f7598c930d0c0c5c4d4d74266256f5785bff0ab396eb1b6a" args="" -->eANALOG_INPUT_ACCEL</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5c0e0c1828cf31979089fa9a82c1da9d49"></a><!-- doxytag: member="eANALOG_INPUT_BRAKE_LEFT" ref="13e9cce8dce77a82f7598c930d0c0c5c0e0c1828cf31979089fa9a82c1da9d49" args="" -->eANALOG_INPUT_BRAKE_LEFT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5c2bc6e1cf01b82577d18626f6b2186f2b"></a><!-- doxytag: member="eANALOG_INPUT_BRAKE_RIGHT" ref="13e9cce8dce77a82f7598c930d0c0c5c2bc6e1cf01b82577d18626f6b2186f2b" args="" -->eANALOG_INPUT_BRAKE_RIGHT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5c5fd1badaa124dfe45b78ea77d41e5a88"></a><!-- doxytag: member="eANALOG_INPUT_THRUST_LEFT" ref="13e9cce8dce77a82f7598c930d0c0c5c5fd1badaa124dfe45b78ea77d41e5a88" args="" -->eANALOG_INPUT_THRUST_LEFT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5cf9fe3fceb9090bb618d8ecbc990034f3"></a><!-- doxytag: member="eANALOG_INPUT_THRUST_RIGHT" ref="13e9cce8dce77a82f7598c930d0c0c5cf9fe3fceb9090bb618d8ecbc990034f3" args="" -->eANALOG_INPUT_THRUST_RIGHT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="13e9cce8dce77a82f7598c930d0c0c5c1e723ae081f8a1849fab0baab509bd04"></a><!-- doxytag: member="eMAX_NB_DRIVETANK_ANALOG_INPUTS" ref="13e9cce8dce77a82f7598c930d0c0c5c1e723ae081f8a1849fab0baab509bd04" args="" -->eMAX_NB_DRIVETANK_ANALOG_INPUTS</em> </td><td>
</td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="PxVehicleDriveTank_8h-source.html">PxVehicleDriveTank.h</a></ul>
</div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>
|