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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxRaycastHit 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>PxRaycastHit Struct Reference<br>
<small>
[<a class="el" href="group__scenequery.html">Scenequery</a>]</small>
</h1><!-- doxytag: class="PxRaycastHit" --><!-- doxytag: inherits="PxLocationHit" -->Stores results of raycast queries.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxQueryReport_8h-source.html">PxQueryReport.h</a>></code>
<p>
<div class="dynheader">
Inheritance diagram for PxRaycastHit:</div>
<div class="dynsection">
<p><center><img src="structPxRaycastHit__inherit__graph.png" border="0" usemap="#PxRaycastHit__inherit__map" alt="Inheritance graph"></center>
<map name="PxRaycastHit__inherit__map">
<area shape="rect" href="structPxLocationHit.html" title="Scene query hit information for raycasts and sweeps returning hit position and normal..." alt="PxLocationHit" coords="9,155,95,176"><area shape="rect" href="structPxQueryHit.html" title="Scene query hit information." alt="PxQueryHit" coords="15,86,89,107"><area shape="rect" href="structPxActorShape.html" title="collection of set bits defined in PxHitFlag." alt="PxActorShape" coords="7,16,97,38"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for PxRaycastHit:</div>
<div class="dynsection">
<p><center><img src="structPxRaycastHit__coll__graph.png" border="0" usemap="#PxRaycastHit__coll__map" alt="Collaboration graph"></center>
<map name="PxRaycastHit__coll__map">
<area shape="rect" href="structPxLocationHit.html" title="Scene query hit information for raycasts and sweeps returning hit position and normal..." alt="PxLocationHit" coords="139,538,224,560"><area shape="rect" href="structPxQueryHit.html" title="Scene query hit information." alt="PxQueryHit" coords="87,432,161,453"><area shape="rect" href="structPxActorShape.html" title="collection of set bits defined in PxHitFlag." alt="PxActorShape" coords="79,360,169,381"><area shape="rect" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies..." alt="PxRigidActor" coords="32,269,115,290"><area shape="rect" href="classPxActor.html" title="PxActor is the base class for the main simulation objects in the physics SDK." alt="PxActor" coords="61,178,115,200"><area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="97,106,153,128"><area shape="rect" href="classPxShape.html" title="Abstract class for collision shapes." alt="PxShape" coords="125,224,189,245"><area shape="rect" href="classPxFlags.html" title="PxFlags\< PxBaseFlag::Enum, PxU16 \>" alt="PxFlags\< PxBaseFlag::Enum, PxU16 \>" coords="7,16,244,37"><area shape="rect" href="classPxVec3.html" title="3 Element vector class." alt="PxVec3" coords="185,432,239,453"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="structPxRaycastHit-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 Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_INLINE </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxRaycastHit.html#5e1097c8e1265bf67cd92ea6c39122c0">PxRaycastHit</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxRaycastHit.html#798f4daa2ae98dd6144358314520964d">u</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PxReal </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxRaycastHit.html#43a429012ce502bac4636be3e5540f29">v</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">barycentric coordinates of hit point, for triangle mesh and height field (flag: <a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64ac585040db8a8a2839de7104a81a370c" title=""u" and "v" barycentric coordinates of PxQueryHit are valid....">PxHitFlag::eUV</a>) <a href="#43a429012ce502bac4636be3e5540f29"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxRaycastHit.html#251f56ec3d168a814467301f61a120c7">padTo16Bytes</a> [3]</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Stores results of raycast queries.
<p>
<a class="el" href="structPxHitFlag.html" title="Scene query and geometry query behavior flags.">PxHitFlag</a> flags can be passed to raycast function, as an optimization, to cause the SDK to only compute specified members of this structure.<p>
Some members like barycentric coordinates are currently only computed for triangle meshes and height fields, but next versions might provide them in other cases. The client code should check <a class="el" href="structPxLocationHit.html#7a253cb291ae5850342dada5b4dfce34" title="Hit flags specifying which members contain valid values.">flags</a> to make sure returned values are valid.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><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="classPxBatchQuery.html#39f64da3f122ff78cbaa1a5a83bc9840" title="Performs a raycast against objects in the scene, returns results in PxBatchQueryMemory::userRaycastR...">PxBatchQuery.raycast</a> <a class="el" href="classPxVolumeCache.html#e9feb4df002ccf6a69f1442689f18186" title="Raycast against objects in the cache, returning results via PxRaycastCallback callback...">PxVolumeCache.raycast</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="5e1097c8e1265bf67cd92ea6c39122c0"></a><!-- doxytag: member="PxRaycastHit::PxRaycastHit" ref="5e1097c8e1265bf67cd92ea6c39122c0" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxRaycastHit::PxRaycastHit </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="251f56ec3d168a814467301f61a120c7"></a><!-- doxytag: member="PxRaycastHit::padTo16Bytes" ref="251f56ec3d168a814467301f61a120c7" args="[3]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> <a class="el" href="structPxRaycastHit.html#251f56ec3d168a814467301f61a120c7">PxRaycastHit::padTo16Bytes</a>[3] </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="798f4daa2ae98dd6144358314520964d"></a><!-- doxytag: member="PxRaycastHit::u" ref="798f4daa2ae98dd6144358314520964d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PxReal <a class="el" href="structPxRaycastHit.html#798f4daa2ae98dd6144358314520964d">PxRaycastHit::u</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="43a429012ce502bac4636be3e5540f29"></a><!-- doxytag: member="PxRaycastHit::v" ref="43a429012ce502bac4636be3e5540f29" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PxReal <a class="el" href="structPxRaycastHit.html#43a429012ce502bac4636be3e5540f29">PxRaycastHit::v</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
barycentric coordinates of hit point, for triangle mesh and height field (flag: <a class="el" href="structPxHitFlag.html#44c173f6ddf0522ffbd8fa3c585e6b64ac585040db8a8a2839de7104a81a370c" title=""u" and "v" barycentric coordinates of PxQueryHit are valid....">PxHitFlag::eUV</a>)
<p>
</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>
|