Files
PhysX4.1/physx/documentation/PhysXAPI/files/structPxVehicleDriveTankControl.html
2025-11-28 23:13:44 +05:30

156 lines
9.6 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxVehicleDriveTankControl Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structPxVehicleDriveTankControl.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="structPxVehicleDriveTankControl-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">PxVehicleDriveTankControl Struct Reference<div class="ingroups"><a class="el" href="group__vehicle.html">Vehicle</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>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="structPxVehicleDriveTankControl.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="PxVehicleDriveTank_8h_source.html">PxVehicleDriveTank.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a13e9cce8dce77a82f7598c930d0c0c5c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5c">Enum</a> { <br />
&#160;&#160;<a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5ca4d4d74266256f5785bff0ab396eb1b6a">eANALOG_INPUT_ACCEL</a> =0,
<a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5ca0e0c1828cf31979089fa9a82c1da9d49">eANALOG_INPUT_BRAKE_LEFT</a>,
<a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5ca2bc6e1cf01b82577d18626f6b2186f2b">eANALOG_INPUT_BRAKE_RIGHT</a>,
<a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5ca5fd1badaa124dfe45b78ea77d41e5a88">eANALOG_INPUT_THRUST_LEFT</a>,
<br />
&#160;&#160;<a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5caf9fe3fceb9090bb618d8ecbc990034f3">eANALOG_INPUT_THRUST_RIGHT</a>,
<a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5ca1e723ae081f8a1849fab0baab509bd04">eMAX_NB_DRIVETANK_ANALOG_INPUTS</a>
<br />
}</td></tr>
<tr class="separator:a13e9cce8dce77a82f7598c930d0c0c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>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="section note"><dt>Note</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.</dd>
<dd>
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 &gt; eANALOG_INPUT_THRUST_RIGHT the tank will turn to the right. If eANALOG_INPUT_THRUST_RIGHT &gt; eANALOG_INPUT_THRUST_LEFT the tank will turn to the left.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxVehicleDriveDynData.html#a702f9f3b98ba914cb313383aef4b45d5" title="Set an analog control value to drive the vehicle. ">PxVehicleDriveDynData::setAnalogInput</a>, <a class="el" href="classPxVehicleDriveDynData.html#ac97e16c70e323cb30d07fbfd29d54d5f" title="Get the analog control value that has been applied to the vehicle. ">PxVehicleDriveDynData::getAnalogInput</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a13e9cce8dce77a82f7598c930d0c0c5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13e9cce8dce77a82f7598c930d0c0c5c">&#9670;&nbsp;</a></span>Enum</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPxVehicleDriveTankControl.html#a13e9cce8dce77a82f7598c930d0c0c5c">PxVehicleDriveTankControl::Enum</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a13e9cce8dce77a82f7598c930d0c0c5ca4d4d74266256f5785bff0ab396eb1b6a"></a>eANALOG_INPUT_ACCEL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a13e9cce8dce77a82f7598c930d0c0c5ca0e0c1828cf31979089fa9a82c1da9d49"></a>eANALOG_INPUT_BRAKE_LEFT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a13e9cce8dce77a82f7598c930d0c0c5ca2bc6e1cf01b82577d18626f6b2186f2b"></a>eANALOG_INPUT_BRAKE_RIGHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a13e9cce8dce77a82f7598c930d0c0c5ca5fd1badaa124dfe45b78ea77d41e5a88"></a>eANALOG_INPUT_THRUST_LEFT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a13e9cce8dce77a82f7598c930d0c0c5caf9fe3fceb9090bb618d8ecbc990034f3"></a>eANALOG_INPUT_THRUST_RIGHT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a13e9cce8dce77a82f7598c930d0c0c5ca1e723ae081f8a1849fab0baab509bd04"></a>eMAX_NB_DRIVETANK_ANALOG_INPUTS&#160;</td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<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></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="structPxVehicleDriveTankControl.html">PxVehicleDriveTankControl</a></li>
<li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
</ul>
</div>
</body>
</html>