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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxHitFlag 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>PxHitFlag Struct Reference<br>
<small>
[<a class="el" href="group__scenequery.html">Scenequery</a>]</small>
</h1><!-- doxytag: class="PxHitFlag" -->Scene query and geometry query behavior flags.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxQueryReport_8h-source.html">PxQueryReport.h</a>></code>
<p>
<p>
<a href="structPxHitFlag-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="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64">Enum</a> { <br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b6421e4769575db55be01d8f91e06c59b1a">ePOSITION</a> = (1<<0),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b645972f664c2fbe85c992fb9aaba46a5cf">eNORMAL</a> = (1<<1),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b648bcc72eb9965eae03f53182e7e4b79ae">eDISTANCE</a> = (1<<2),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64ac585040db8a8a2839de7104a81a370c">eUV</a> = (1<<3),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b647ec4e2f321d4fe4e3d02c4e4b532cc9b">eASSUME_NO_INITIAL_OVERLAP</a> = (1<<4),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64de0c4ad4267c954d51e99905e69a399e">eMESH_MULTIPLE</a> = (1<<5),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64639d134a27861f74e3721dbd7be65bbc">eMESH_ANY</a> = (1<<6),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64aff8ff06630f9388c0ff8f20b7bbd9d3">eMESH_BOTH_SIDES</a> = (1<<7),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64f903d9ed69a9b2d397ca289752aaeef1">ePRECISE_SWEEP</a> = (1<<8),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64d01fd75af43a6dffeafafb40489ac7b9">eMTD</a> = (1<<9),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b647193a2accbac7b56c15ba83461b716c8">eFACE_INDEX</a> = (1<<10),
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64fbdec54374d753fed4682d855aac7270">eDEFAULT</a> = ePOSITION|eNORMAL|eDISTANCE|eFACE_INDEX,
<br>
<a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b6496f3049caa29758b18308a37e97370f1">eMODIFIABLE_FLAGS</a> = eMESH_MULTIPLE|eMESH_BOTH_SIDES|eASSUME_NO_INITIAL_OVERLAP|ePRECISE_SWEEP
<br>
}</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Scene query and geometry query behavior flags.
<p>
PxHitFlags are used for 3 different purposes:<p>
1) To request hit fields to be filled in by scene queries (such as hit position, normal, face index or UVs). 2) Once query is completed, to indicate which fields are valid (note that a query may produce more valid fields than requested). 3) To specify additional options for the narrow phase and mid-phase intersection routines.<p>
All these flags apply to both scene queries and geometry queries (<a class="el" href="classPxGeometryQuery.html" title="Collection of geometry object queries (sweeps, raycasts, overlaps, ...).">PxGeometryQuery</a>).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> <a class="el" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a> <a class="el" href="classPxScene.html#7d7dcd877cee092f8b57c67d79982b50" title="Performs a raycast against objects in the scene, returns results in a PxRaycastBuffer...">PxScene.raycast</a> <a class="el" href="classPxScene.html#9b07b2a98e64105a06e97ffaeba2a63d" title="Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer...">PxScene.sweep</a> <a class="el" href="classPxScene.html#31d09c0e967f9806a1f0d5df78dfc996" title="Performs an overlap test of a given geometry against objects in the scene, returns...">PxScene.overlap</a> <a class="el" href="classPxGeometryQuery.html" title="Collection of geometry object queries (sweeps, raycasts, overlaps, ...).">PxGeometryQuery</a> <a class="el" href="group__extensions.html#g450abb675b283fd8031caf82e85844e2" title="Computes closest polygon of the convex hull geometry for a given impact point and...">PxFindFaceIndex</a> </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64"></a><!-- doxytag: member="PxHitFlag::Enum" ref="44c173f6ddf0522ffbd8fa3c585e6b64" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64">PxHitFlag::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="44c173f6ddf0522ffbd8fa3c585e6b6421e4769575db55be01d8f91e06c59b1a"></a><!-- doxytag: member="ePOSITION" ref="44c173f6ddf0522ffbd8fa3c585e6b6421e4769575db55be01d8f91e06c59b1a" args="" -->ePOSITION</em> </td><td>
"position" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> is valid </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b645972f664c2fbe85c992fb9aaba46a5cf"></a><!-- doxytag: member="eNORMAL" ref="44c173f6ddf0522ffbd8fa3c585e6b645972f664c2fbe85c992fb9aaba46a5cf" args="" -->eNORMAL</em> </td><td>
"normal" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> is valid </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b648bcc72eb9965eae03f53182e7e4b79ae"></a><!-- doxytag: member="eDISTANCE" ref="44c173f6ddf0522ffbd8fa3c585e6b648bcc72eb9965eae03f53182e7e4b79ae" args="" -->eDISTANCE</em> </td><td>
"distance" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> is valid. Deprecated: the system will always compute & return the distance. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64ac585040db8a8a2839de7104a81a370c"></a><!-- doxytag: member="eUV" ref="44c173f6ddf0522ffbd8fa3c585e6b64ac585040db8a8a2839de7104a81a370c" args="" -->eUV</em> </td><td>
"u" and "v" barycentric coordinates of <a class="el" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> are valid. Not applicable to sweep queries. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b647ec4e2f321d4fe4e3d02c4e4b532cc9b"></a><!-- doxytag: member="eASSUME_NO_INITIAL_OVERLAP" ref="44c173f6ddf0522ffbd8fa3c585e6b647ec4e2f321d4fe4e3d02c4e4b532cc9b" args="" -->eASSUME_NO_INITIAL_OVERLAP</em> </td><td>
Performance hint flag for sweeps when it is known upfront there's no initial overlap. NOTE: using this flag may cause undefined results if shapes are initially overlapping. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64de0c4ad4267c954d51e99905e69a399e"></a><!-- doxytag: member="eMESH_MULTIPLE" ref="44c173f6ddf0522ffbd8fa3c585e6b64de0c4ad4267c954d51e99905e69a399e" args="" -->eMESH_MULTIPLE</em> </td><td>
Report all hits for meshes rather than just the first. Not applicable to sweep queries. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64639d134a27861f74e3721dbd7be65bbc"></a><!-- doxytag: member="eMESH_ANY" ref="44c173f6ddf0522ffbd8fa3c585e6b64639d134a27861f74e3721dbd7be65bbc" args="" -->eMESH_ANY</em> </td><td>
Report any first hit for meshes. If neither eMESH_MULTIPLE nor eMESH_ANY is specified, a single closest hit will be reported for meshes. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64aff8ff06630f9388c0ff8f20b7bbd9d3"></a><!-- doxytag: member="eMESH_BOTH_SIDES" ref="44c173f6ddf0522ffbd8fa3c585e6b64aff8ff06630f9388c0ff8f20b7bbd9d3" args="" -->eMESH_BOTH_SIDES</em> </td><td>
Report hits with back faces of mesh triangles. Also report hits for raycast originating on mesh surface and facing away from the surface normal. Not applicable to sweep queries. Please refer to the user guide for heightfield-specific differences. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64f903d9ed69a9b2d397ca289752aaeef1"></a><!-- doxytag: member="ePRECISE_SWEEP" ref="44c173f6ddf0522ffbd8fa3c585e6b64f903d9ed69a9b2d397ca289752aaeef1" args="" -->ePRECISE_SWEEP</em> </td><td>
Use more accurate but slower narrow phase sweep tests. May provide better compatibility with PhysX 3.2 sweep behavior. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64d01fd75af43a6dffeafafb40489ac7b9"></a><!-- doxytag: member="eMTD" ref="44c173f6ddf0522ffbd8fa3c585e6b64d01fd75af43a6dffeafafb40489ac7b9" args="" -->eMTD</em> </td><td>
Report the minimum translation depth, normal and contact point. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b647193a2accbac7b56c15ba83461b716c8"></a><!-- doxytag: member="eFACE_INDEX" ref="44c173f6ddf0522ffbd8fa3c585e6b647193a2accbac7b56c15ba83461b716c8" args="" -->eFACE_INDEX</em> </td><td>
"face index" member of <a class="el" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> is valid </td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b64fbdec54374d753fed4682d855aac7270"></a><!-- doxytag: member="eDEFAULT" ref="44c173f6ddf0522ffbd8fa3c585e6b64fbdec54374d753fed4682d855aac7270" args="" -->eDEFAULT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="44c173f6ddf0522ffbd8fa3c585e6b6496f3049caa29758b18308a37e97370f1"></a><!-- doxytag: member="eMODIFIABLE_FLAGS" ref="44c173f6ddf0522ffbd8fa3c585e6b6496f3049caa29758b18308a37e97370f1" args="" -->eMODIFIABLE_FLAGS</em> </td><td>
Only this subset of flags can be modified by pre-filter. Other modifications will be discarded. </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="PxQueryReport_8h-source.html">PxQueryReport.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>
|