aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_collision_manager.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_collision_manager.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_collision_manager.html612
1 files changed, 612 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_collision_manager.html b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_collision_manager.html
new file mode 100644
index 0000000..457c0f6
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_collision_manager.html
@@ -0,0 +1,612 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>Irrlicht 3D Engine: irr::scene::ISceneCollisionManager Class Reference</title>
6
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="doxygen.css" rel="stylesheet" type="text/css" />
9<link href="navtree.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="resize.js"></script>
12<script type="text/javascript" src="navtree.js"></script>
13<script type="text/javascript">
14 $(document).ready(initResizable);
15</script>
16<link href="search/search.css" rel="stylesheet" type="text/css"/>
17<script type="text/javascript" src="search/search.js"></script>
18<script type="text/javascript">
19 $(document).ready(function() { searchBox.OnSelectItem(0); });
20</script>
21
22</head>
23<body>
24<div id="top"><!-- do not remove this div! -->
25
26
27<div id="titlearea">
28<table cellspacing="0" cellpadding="0">
29 <tbody>
30 <tr style="height: 56px;">
31
32 <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
33
34
35 <td style="padding-left: 0.5em;">
36 <div id="projectname">Irrlicht 3D Engine
37
38 </div>
39
40 </td>
41
42
43
44
45 <td> <div id="MSearchBox" class="MSearchBoxInactive">
46 <span class="left">
47 <img id="MSearchSelect" src="search/mag_sel.png"
48 onmouseover="return searchBox.OnSearchSelectShow()"
49 onmouseout="return searchBox.OnSearchSelectHide()"
50 alt=""/>
51 <input type="text" id="MSearchField" value="Search" accesskey="S"
52 onfocus="searchBox.OnSearchFieldFocus(true)"
53 onblur="searchBox.OnSearchFieldFocus(false)"
54 onkeyup="searchBox.OnSearchFieldChange(event)"/>
55 </span><span class="right">
56 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
57 </span>
58 </div>
59</td>
60
61
62 </tr>
63 </tbody>
64</table>
65</div>
66
67<!-- Generated by Doxygen 1.7.5.1 -->
68<script type="text/javascript">
69var searchBox = new SearchBox("searchBox", "search",false,'Search');
70</script>
71<script type="text/javascript" src="dynsections.js"></script>
72</div>
73<div id="side-nav" class="ui-resizable side-nav-resizable">
74 <div id="nav-tree">
75 <div id="nav-tree-contents">
76 </div>
77 </div>
78 <div id="splitbar" style="-moz-user-select:none;"
79 class="ui-resizable-handle">
80 </div>
81</div>
82<script type="text/javascript">
83 initNavTree('classirr_1_1scene_1_1_i_scene_collision_manager.html','');
84</script>
85<div id="doc-content">
86<div class="header">
87 <div class="summary">
88<a href="#pub-methods">Public Member Functions</a> </div>
89 <div class="headertitle">
90<div class="title">irr::scene::ISceneCollisionManager Class Reference</div> </div>
91</div>
92<div class="contents">
93<!-- doxytag: class="irr::scene::ISceneCollisionManager" --><!-- doxytag: inherits="irr::IReferenceCounted" -->
94<p>The Scene Collision Manager provides methods for performing collision tests and picking on scene nodes.
95 <a href="classirr_1_1scene_1_1_i_scene_collision_manager.html#details">More...</a></p>
96
97<p><code>#include &lt;<a class="el" href="_i_scene_collision_manager_8h_source.html">ISceneCollisionManager.h</a>&gt;</code></p>
98<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
99 <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for irr::scene::ISceneCollisionManager:</div>
100<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
101</div>
102<div id="dynsection-0-content" class="dyncontent" style="display:none;">
103 <div class="center">
104 <img src="classirr_1_1scene_1_1_i_scene_collision_manager.png" usemap="#irr::scene::ISceneCollisionManager_map" alt=""/>
105 <map id="irr::scene::ISceneCollisionManager_map" name="irr::scene::ISceneCollisionManager_map">
106<area href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine." alt="irr::IReferenceCounted" shape="rect" coords="0,0,209,24"/>
107</map>
108 </div></div>
109
110<p><a href="classirr_1_1scene_1_1_i_scene_collision_manager-members.html">List of all members.</a></p>
111<h2><a name="pub-methods"></a>
112Public Member Functions</h2>
113<ul>
114<li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#a0adcf9dca228fac89b085144141f33b0">getCollisionPoint</a> (const <a class="el" href="classirr_1_1core_1_1line3d.html">core::line3d</a>&lt; <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> &gt; &amp;ray, <a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> *selector, <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;outCollisionPoint, <a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp;outTriangle, <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&amp;outNode)=0
115<dl class="el"><dd class="mdescRight">Finds the nearest collision point of a line and lots of triangles, if there is one. <a href="#a0adcf9dca228fac89b085144141f33b0"></a><br/></dl><li>virtual <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#a4a1b1bdf49ec8dd3d4de8b502409ee00">getCollisionResultPosition</a> (<a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> *selector, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;ellipsoidPosition, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;ellipsoidRadius, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;ellipsoidDirectionAndSpeed, <a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp;triout, <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;hitPosition, bool &amp;outFalling, <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&amp;outNode, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> slidingSpeed=0.0005f, const core::vector3df &amp;gravityDirectionAndSpeed=core::vector3df(0.0f, 0.0f, 0.0f))=0
116<dl class="el"><dd class="mdescRight">Collides a moving ellipsoid with a 3d world with gravity and returns the resulting new position of the ellipsoid. <a href="#a4a1b1bdf49ec8dd3d4de8b502409ee00"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1core_1_1line3d.html">core::line3d</a>&lt; <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> &gt; <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#adb95809ed422e138405f30844740666b">getRayFromScreenCoordinates</a> (const core::position2d&lt; <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> &gt; &amp;pos, <a class="el" href="classirr_1_1scene_1_1_i_camera_scene_node.html">ICameraSceneNode</a> *camera=0)=0
117<dl class="el"><dd class="mdescRight">Returns a 3d ray which would go through the 2d screen coodinates. <a href="#adb95809ed422e138405f30844740666b"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#a25af822d52bce9acd88adfc7ce484982">getSceneNodeAndCollisionPointFromRay</a> (<a class="el" href="namespaceirr_1_1core.html#a384a3bb17659466af5521c7f74cfcea7">core::line3df</a> ray, <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;outCollisionPoint, <a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp;outTriangle, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> idBitMask=0, <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *collisionRootNode=0, bool noDebugObjects=false)=0
118<dl class="el"><dd class="mdescRight">Perform a ray/box and ray/triangle collision check on a heirarchy of scene nodes. <a href="#a25af822d52bce9acd88adfc7ce484982"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#ab29e0a261409a95a20e15ee09cc0de64">getSceneNodeFromCameraBB</a> (<a class="el" href="classirr_1_1scene_1_1_i_camera_scene_node.html">ICameraSceneNode</a> *camera, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> idBitMask=0, bool bNoDebugObjects=false)=0
119<dl class="el"><dd class="mdescRight">Get the scene node, which the given camera is looking at and whose id matches the bitmask. <a href="#ab29e0a261409a95a20e15ee09cc0de64"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#a420ffad2d3a8bcd2f51b504cb8709ac6">getSceneNodeFromRayBB</a> (const <a class="el" href="classirr_1_1core_1_1line3d.html">core::line3d</a>&lt; <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> &gt; &amp;ray, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> idBitMask=0, bool bNoDebugObjects=false, <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *root=0)=0
120<dl class="el"><dd class="mdescRight">Returns the nearest scene node which collides with a 3d ray and whose id matches a bitmask. <a href="#a420ffad2d3a8bcd2f51b504cb8709ac6"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#aca97a47ae237373bbd681268a462f4a0">getSceneNodeFromScreenCoordinatesBB</a> (const core::position2d&lt; <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> &gt; &amp;pos, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> idBitMask=0, bool bNoDebugObjects=false, <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *root=0)=0
121<dl class="el"><dd class="mdescRight">Gets the scene node, which is currently visible under the given screencoordinates, viewed from the currently active camera. <a href="#aca97a47ae237373bbd681268a462f4a0"></a><br/></dl><li>virtual core::position2d&lt; <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> &gt; <a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html#a6032377ff769e42c3e28547794f015ea">getScreenCoordinatesFrom3DPosition</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;pos, <a class="el" href="classirr_1_1scene_1_1_i_camera_scene_node.html">ICameraSceneNode</a> *camera=0, bool useViewPort=false)=0
122<dl class="el"><dd class="mdescRight">Calculates 2d screen position from a 3d position. <a href="#a6032377ff769e42c3e28547794f015ea"></a><br/></dl></ul>
123<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
124<div class="textblock"><p>The Scene Collision Manager provides methods for performing collision tests and picking on scene nodes. </p>
125
126<p>Definition at line <a class="el" href="_i_scene_collision_manager_8h_source.html#l00024">24</a> of file <a class="el" href="_i_scene_collision_manager_8h_source.html">ISceneCollisionManager.h</a>.</p>
127</div><hr/><h2>Member Function Documentation</h2>
128<a class="anchor" id="a0adcf9dca228fac89b085144141f33b0"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getCollisionPoint" ref="a0adcf9dca228fac89b085144141f33b0" args="(const core::line3d&lt; f32 &gt; &amp;ray, ITriangleSelector *selector, core::vector3df &amp;outCollisionPoint, core::triangle3df &amp;outTriangle, ISceneNode *&amp;outNode)=0" -->
129<div class="memitem">
130<div class="memproto">
131 <table class="memname">
132 <tr>
133 <td class="memname">virtual bool irr::scene::ISceneCollisionManager::getCollisionPoint </td>
134 <td>(</td>
135 <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1line3d.html">core::line3d</a>&lt; <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> &gt; &amp;&#160;</td>
136 <td class="paramname"><em>ray</em>, </td>
137 </tr>
138 <tr>
139 <td class="paramkey"></td>
140 <td></td>
141 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> *&#160;</td>
142 <td class="paramname"><em>selector</em>, </td>
143 </tr>
144 <tr>
145 <td class="paramkey"></td>
146 <td></td>
147 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
148 <td class="paramname"><em>outCollisionPoint</em>, </td>
149 </tr>
150 <tr>
151 <td class="paramkey"></td>
152 <td></td>
153 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp;&#160;</td>
154 <td class="paramname"><em>outTriangle</em>, </td>
155 </tr>
156 <tr>
157 <td class="paramkey"></td>
158 <td></td>
159 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&amp;&#160;</td>
160 <td class="paramname"><em>outNode</em>&#160;</td>
161 </tr>
162 <tr>
163 <td></td>
164 <td>)</td>
165 <td></td><td><code> [pure virtual]</code></td>
166 </tr>
167 </table>
168</div>
169<div class="memdoc">
170
171<p>Finds the nearest collision point of a line and lots of triangles, if there is one. </p>
172<dl><dt><b>Parameters:</b></dt><dd>
173 <table class="params">
174 <tr><td class="paramname">ray,:</td><td>Line with which collisions are tested. </td></tr>
175 <tr><td class="paramname">selector,:</td><td>TriangleSelector containing the triangles. It can be created for example using <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a266625379b1558e9be1dc062ea4e71f7" title="Creates a simple ITriangleSelector, based on a mesh.">ISceneManager::createTriangleSelector()</a> or ISceneManager::createTriangleOctreeSelector(). </td></tr>
176 <tr><td class="paramname">outCollisionPoint,:</td><td>If a collision is detected, this will contain the position of the nearest collision to the line-start. </td></tr>
177 <tr><td class="paramname">outTriangle,:</td><td>If a collision is detected, this will contain the triangle with which the ray collided. </td></tr>
178 <tr><td class="paramname">outNode,:</td><td>If a collision is detected, this will contain the scene node associated with the triangle that was hit. </td></tr>
179 </table>
180 </dd>
181</dl>
182<dl class="return"><dt><b>Returns:</b></dt><dd>True if a collision was detected and false if not. </dd></dl>
183
184</div>
185</div>
186<a class="anchor" id="a4a1b1bdf49ec8dd3d4de8b502409ee00"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getCollisionResultPosition" ref="a4a1b1bdf49ec8dd3d4de8b502409ee00" args="(ITriangleSelector *selector, const core::vector3df &amp;ellipsoidPosition, const core::vector3df &amp;ellipsoidRadius, const core::vector3df &amp;ellipsoidDirectionAndSpeed, core::triangle3df &amp;triout, core::vector3df &amp;hitPosition, bool &amp;outFalling, ISceneNode *&amp;outNode, f32 slidingSpeed=0.0005f, const core::vector3df &amp;gravityDirectionAndSpeed=core::vector3df(0.0f, 0.0f, 0.0f))=0" -->
187<div class="memitem">
188<div class="memproto">
189 <table class="memname">
190 <tr>
191 <td class="memname">virtual <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> irr::scene::ISceneCollisionManager::getCollisionResultPosition </td>
192 <td>(</td>
193 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> *&#160;</td>
194 <td class="paramname"><em>selector</em>, </td>
195 </tr>
196 <tr>
197 <td class="paramkey"></td>
198 <td></td>
199 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
200 <td class="paramname"><em>ellipsoidPosition</em>, </td>
201 </tr>
202 <tr>
203 <td class="paramkey"></td>
204 <td></td>
205 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
206 <td class="paramname"><em>ellipsoidRadius</em>, </td>
207 </tr>
208 <tr>
209 <td class="paramkey"></td>
210 <td></td>
211 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
212 <td class="paramname"><em>ellipsoidDirectionAndSpeed</em>, </td>
213 </tr>
214 <tr>
215 <td class="paramkey"></td>
216 <td></td>
217 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp;&#160;</td>
218 <td class="paramname"><em>triout</em>, </td>
219 </tr>
220 <tr>
221 <td class="paramkey"></td>
222 <td></td>
223 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
224 <td class="paramname"><em>hitPosition</em>, </td>
225 </tr>
226 <tr>
227 <td class="paramkey"></td>
228 <td></td>
229 <td class="paramtype">bool &amp;&#160;</td>
230 <td class="paramname"><em>outFalling</em>, </td>
231 </tr>
232 <tr>
233 <td class="paramkey"></td>
234 <td></td>
235 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&amp;&#160;</td>
236 <td class="paramname"><em>outNode</em>, </td>
237 </tr>
238 <tr>
239 <td class="paramkey"></td>
240 <td></td>
241 <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a>&#160;</td>
242 <td class="paramname"><em>slidingSpeed</em> = <code>0.0005f</code>, </td>
243 </tr>
244 <tr>
245 <td class="paramkey"></td>
246 <td></td>
247 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
248 <td class="paramname"><em>gravityDirectionAndSpeed</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f,&#160;0.0f,&#160;0.0f)</code>&#160;</td>
249 </tr>
250 <tr>
251 <td></td>
252 <td>)</td>
253 <td></td><td><code> [pure virtual]</code></td>
254 </tr>
255 </table>
256</div>
257<div class="memdoc">
258
259<p>Collides a moving ellipsoid with a 3d world with gravity and returns the resulting new position of the ellipsoid. </p>
260<p>This can be used for moving a character in a 3d world: The character will slide at walls and is able to walk up stairs. The method used how to calculate the collision result position is based on the paper "Improved Collision detection and
261 Response" by Kasper Fauerby. </p>
262<dl><dt><b>Parameters:</b></dt><dd>
263 <table class="params">
264 <tr><td class="paramname">selector,:</td><td>TriangleSelector containing the triangles of the world. It can be created for example using <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a266625379b1558e9be1dc062ea4e71f7" title="Creates a simple ITriangleSelector, based on a mesh.">ISceneManager::createTriangleSelector()</a> or ISceneManager::createTriangleOctreeSelector(). </td></tr>
265 <tr><td class="paramname">ellipsoidPosition,:</td><td>Position of the ellipsoid. </td></tr>
266 <tr><td class="paramname">ellipsoidRadius,:</td><td>Radius of the ellipsoid. </td></tr>
267 <tr><td class="paramname">ellipsoidDirectionAndSpeed,:</td><td>Direction and speed of the movement of the ellipsoid. </td></tr>
268 <tr><td class="paramname">triout,:</td><td>Optional parameter where the last triangle causing a collision is stored, if there is a collision. </td></tr>
269 <tr><td class="paramname">hitPosition,:</td><td>Return value for the position of the collision </td></tr>
270 <tr><td class="paramname">outFalling,:</td><td>Is set to true if the ellipsoid is falling down, caused by gravity. </td></tr>
271 <tr><td class="paramname">outNode,:</td><td>the node with which the ellipoid collided (if any) </td></tr>
272 <tr><td class="paramname">slidingSpeed,:</td><td>DOCUMENTATION NEEDED. </td></tr>
273 <tr><td class="paramname">gravityDirectionAndSpeed,:</td><td>Direction and force of gravity. </td></tr>
274 </table>
275 </dd>
276</dl>
277<dl class="return"><dt><b>Returns:</b></dt><dd>New position of the ellipsoid. </dd></dl>
278
279</div>
280</div>
281<a class="anchor" id="adb95809ed422e138405f30844740666b"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates" ref="adb95809ed422e138405f30844740666b" args="(const core::position2d&lt; s32 &gt; &amp;pos, ICameraSceneNode *camera=0)=0" -->
282<div class="memitem">
283<div class="memproto">
284 <table class="memname">
285 <tr>
286 <td class="memname">virtual <a class="el" href="classirr_1_1core_1_1line3d.html">core::line3d</a>&lt;<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a>&gt; irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates </td>
287 <td>(</td>
288 <td class="paramtype">const core::position2d&lt; <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> &gt; &amp;&#160;</td>
289 <td class="paramname"><em>pos</em>, </td>
290 </tr>
291 <tr>
292 <td class="paramkey"></td>
293 <td></td>
294 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_camera_scene_node.html">ICameraSceneNode</a> *&#160;</td>
295 <td class="paramname"><em>camera</em> = <code>0</code>&#160;</td>
296 </tr>
297 <tr>
298 <td></td>
299 <td>)</td>
300 <td></td><td><code> [pure virtual]</code></td>
301 </tr>
302 </table>
303</div>
304<div class="memdoc">
305
306<p>Returns a 3d ray which would go through the 2d screen coodinates. </p>
307<dl><dt><b>Parameters:</b></dt><dd>
308 <table class="params">
309 <tr><td class="paramname">pos,:</td><td>Screen coordinates in pixels. </td></tr>
310 <tr><td class="paramname">camera,:</td><td>Camera from which the ray starts. If null, the active camera is used. </td></tr>
311 </table>
312 </dd>
313</dl>
314<dl class="return"><dt><b>Returns:</b></dt><dd>Ray starting from the position of the camera and ending at a length of the far value of the camera at a position which would be behind the 2d screen coodinates. </dd></dl>
315
316</div>
317</div>
318<a class="anchor" id="a25af822d52bce9acd88adfc7ce484982"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getSceneNodeAndCollisionPointFromRay" ref="a25af822d52bce9acd88adfc7ce484982" args="(core::line3df ray, core::vector3df &amp;outCollisionPoint, core::triangle3df &amp;outTriangle, s32 idBitMask=0, ISceneNode *collisionRootNode=0, bool noDebugObjects=false)=0" -->
319<div class="memitem">
320<div class="memproto">
321 <table class="memname">
322 <tr>
323 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a>* irr::scene::ISceneCollisionManager::getSceneNodeAndCollisionPointFromRay </td>
324 <td>(</td>
325 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a384a3bb17659466af5521c7f74cfcea7">core::line3df</a>&#160;</td>
326 <td class="paramname"><em>ray</em>, </td>
327 </tr>
328 <tr>
329 <td class="paramkey"></td>
330 <td></td>
331 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
332 <td class="paramname"><em>outCollisionPoint</em>, </td>
333 </tr>
334 <tr>
335 <td class="paramkey"></td>
336 <td></td>
337 <td class="paramtype"><a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp;&#160;</td>
338 <td class="paramname"><em>outTriangle</em>, </td>
339 </tr>
340 <tr>
341 <td class="paramkey"></td>
342 <td></td>
343 <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
344 <td class="paramname"><em>idBitMask</em> = <code>0</code>, </td>
345 </tr>
346 <tr>
347 <td class="paramkey"></td>
348 <td></td>
349 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&#160;</td>
350 <td class="paramname"><em>collisionRootNode</em> = <code>0</code>, </td>
351 </tr>
352 <tr>
353 <td class="paramkey"></td>
354 <td></td>
355 <td class="paramtype">bool&#160;</td>
356 <td class="paramname"><em>noDebugObjects</em> = <code>false</code>&#160;</td>
357 </tr>
358 <tr>
359 <td></td>
360 <td>)</td>
361 <td></td><td><code> [pure virtual]</code></td>
362 </tr>
363 </table>
364</div>
365<div class="memdoc">
366
367<p>Perform a ray/box and ray/triangle collision check on a heirarchy of scene nodes. </p>
368<p>This checks all scene nodes under the specified one, first by ray/bounding box, and then by accurate ray/triangle collision, finding the nearest collision, and the scene node containg it. It returns the node hit, and (via output parameters) the position of the collision, and the triangle that was hit.</p>
369<p>All scene nodes in the hierarchy tree under the specified node are checked. Only nodes that are visible, with an ID that matches at least one bit in the supplied bitmask, and which have a triangle selector are considered as candidates for being hit. You do not have to build a meta triangle selector; the individual triangle selectors of each candidate scene node are used automatically.</p>
370<dl><dt><b>Parameters:</b></dt><dd>
371 <table class="params">
372 <tr><td class="paramname">ray,:</td><td>Line with which collisions are tested. </td></tr>
373 <tr><td class="paramname">outCollisionPoint,:</td><td>If a collision is detected, this will contain the position of the nearest collision. </td></tr>
374 <tr><td class="paramname">outTriangle,:</td><td>If a collision is detected, this will contain the triangle with which the ray collided. </td></tr>
375 <tr><td class="paramname">idBitMask,:</td><td>Only scene nodes with an id which matches at least one of the bits contained in this mask will be tested. However, if this parameter is 0, then all nodes are checked. </td></tr>
376 <tr><td class="paramname">collisionRootNode,:</td><td>the scene node at which to begin checking. Only this node and its children will be checked. If you want to check the entire scene, pass 0, and the root scene node will be used (this is the default). </td></tr>
377 <tr><td class="paramname">noDebugObjects,:</td><td>when true, debug objects are not considered viable targets. Debug objects are scene nodes with IsDebugObject() = true. </td></tr>
378 </table>
379 </dd>
380</dl>
381<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the scene node containing the hit triangle nearest to ray.start. If no collision is detected, then 0 is returned. </dd></dl>
382
383</div>
384</div>
385<a class="anchor" id="ab29e0a261409a95a20e15ee09cc0de64"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getSceneNodeFromCameraBB" ref="ab29e0a261409a95a20e15ee09cc0de64" args="(ICameraSceneNode *camera, s32 idBitMask=0, bool bNoDebugObjects=false)=0" -->
386<div class="memitem">
387<div class="memproto">
388 <table class="memname">
389 <tr>
390 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a>* irr::scene::ISceneCollisionManager::getSceneNodeFromCameraBB </td>
391 <td>(</td>
392 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_camera_scene_node.html">ICameraSceneNode</a> *&#160;</td>
393 <td class="paramname"><em>camera</em>, </td>
394 </tr>
395 <tr>
396 <td class="paramkey"></td>
397 <td></td>
398 <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
399 <td class="paramname"><em>idBitMask</em> = <code>0</code>, </td>
400 </tr>
401 <tr>
402 <td class="paramkey"></td>
403 <td></td>
404 <td class="paramtype">bool&#160;</td>
405 <td class="paramname"><em>bNoDebugObjects</em> = <code>false</code>&#160;</td>
406 </tr>
407 <tr>
408 <td></td>
409 <td>)</td>
410 <td></td><td><code> [pure virtual]</code></td>
411 </tr>
412 </table>
413</div>
414<div class="memdoc">
415
416<p>Get the scene node, which the given camera is looking at and whose id matches the bitmask. </p>
417<p>A ray is simply casted from the position of the camera to the view target position, and all scene nodes are tested against this ray. The collision tests are done using a bounding box for each scene node. </p>
418<dl><dt><b>Parameters:</b></dt><dd>
419 <table class="params">
420 <tr><td class="paramname">camera,:</td><td>Camera from which the ray is casted. </td></tr>
421 <tr><td class="paramname">idBitMask,:</td><td>Only scene nodes with an id which matches at least one of the bits contained in this mask will be tested. However, if this parameter is 0, then all nodes are checked. feature is disabled. Please note that the default node id of -1 will match with every bitmask != 0 </td></tr>
422 <tr><td class="paramname">bNoDebugObjects,:</td><td>Doesn't take debug objects into account when true. These are scene nodes with IsDebugObject() = true. </td></tr>
423 </table>
424 </dd>
425</dl>
426<dl class="return"><dt><b>Returns:</b></dt><dd>Scene node nearest to the camera, which collides with the ray and matches the idBitMask, if the mask is not null. If no scene node is found, 0 is returned. </dd></dl>
427
428</div>
429</div>
430<a class="anchor" id="a420ffad2d3a8bcd2f51b504cb8709ac6"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getSceneNodeFromRayBB" ref="a420ffad2d3a8bcd2f51b504cb8709ac6" args="(const core::line3d&lt; f32 &gt; &amp;ray, s32 idBitMask=0, bool bNoDebugObjects=false, ISceneNode *root=0)=0" -->
431<div class="memitem">
432<div class="memproto">
433 <table class="memname">
434 <tr>
435 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a>* irr::scene::ISceneCollisionManager::getSceneNodeFromRayBB </td>
436 <td>(</td>
437 <td class="paramtype">const <a class="el" href="classirr_1_1core_1_1line3d.html">core::line3d</a>&lt; <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> &gt; &amp;&#160;</td>
438 <td class="paramname"><em>ray</em>, </td>
439 </tr>
440 <tr>
441 <td class="paramkey"></td>
442 <td></td>
443 <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
444 <td class="paramname"><em>idBitMask</em> = <code>0</code>, </td>
445 </tr>
446 <tr>
447 <td class="paramkey"></td>
448 <td></td>
449 <td class="paramtype">bool&#160;</td>
450 <td class="paramname"><em>bNoDebugObjects</em> = <code>false</code>, </td>
451 </tr>
452 <tr>
453 <td class="paramkey"></td>
454 <td></td>
455 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&#160;</td>
456 <td class="paramname"><em>root</em> = <code>0</code>&#160;</td>
457 </tr>
458 <tr>
459 <td></td>
460 <td>)</td>
461 <td></td><td><code> [pure virtual]</code></td>
462 </tr>
463 </table>
464</div>
465<div class="memdoc">
466
467<p>Returns the nearest scene node which collides with a 3d ray and whose id matches a bitmask. </p>
468<p>The collision tests are done using a bounding box for each scene node. The recursive search can be limited be specifying a scene node. </p>
469<dl><dt><b>Parameters:</b></dt><dd>
470 <table class="params">
471 <tr><td class="paramname">ray</td><td>Line with which collisions are tested. </td></tr>
472 <tr><td class="paramname">idBitMask</td><td>Only scene nodes with an id which matches at least one of the bits contained in this mask will be tested. However, if this parameter is 0, then all nodes are checked. </td></tr>
473 <tr><td class="paramname">bNoDebugObjects,:</td><td>Doesn't take debug objects into account when true. These are scene nodes with IsDebugObject() = true. </td></tr>
474 <tr><td class="paramname">root</td><td>If different from 0, the search is limited to the children of this node. </td></tr>
475 </table>
476 </dd>
477</dl>
478<dl class="return"><dt><b>Returns:</b></dt><dd>Scene node nearest to ray.start, which collides with the ray and matches the idBitMask, if the mask is not null. If no scene node is found, 0 is returned. </dd></dl>
479
480</div>
481</div>
482<a class="anchor" id="aca97a47ae237373bbd681268a462f4a0"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB" ref="aca97a47ae237373bbd681268a462f4a0" args="(const core::position2d&lt; s32 &gt; &amp;pos, s32 idBitMask=0, bool bNoDebugObjects=false, ISceneNode *root=0)=0" -->
483<div class="memitem">
484<div class="memproto">
485 <table class="memname">
486 <tr>
487 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a>* irr::scene::ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB </td>
488 <td>(</td>
489 <td class="paramtype">const core::position2d&lt; <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> &gt; &amp;&#160;</td>
490 <td class="paramname"><em>pos</em>, </td>
491 </tr>
492 <tr>
493 <td class="paramkey"></td>
494 <td></td>
495 <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
496 <td class="paramname"><em>idBitMask</em> = <code>0</code>, </td>
497 </tr>
498 <tr>
499 <td class="paramkey"></td>
500 <td></td>
501 <td class="paramtype">bool&#160;</td>
502 <td class="paramname"><em>bNoDebugObjects</em> = <code>false</code>, </td>
503 </tr>
504 <tr>
505 <td class="paramkey"></td>
506 <td></td>
507 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&#160;</td>
508 <td class="paramname"><em>root</em> = <code>0</code>&#160;</td>
509 </tr>
510 <tr>
511 <td></td>
512 <td>)</td>
513 <td></td><td><code> [pure virtual]</code></td>
514 </tr>
515 </table>
516</div>
517<div class="memdoc">
518
519<p>Gets the scene node, which is currently visible under the given screencoordinates, viewed from the currently active camera. </p>
520<p>The collision tests are done using a bounding box for each scene node. You can limit the recursive search so just all children of the specified root are tested. </p>
521<dl><dt><b>Parameters:</b></dt><dd>
522 <table class="params">
523 <tr><td class="paramname">pos,:</td><td>Position in pixel screen coordinates, under which the returned scene node will be. </td></tr>
524 <tr><td class="paramname">idBitMask,:</td><td>Only scene nodes with an id with bits set like in this mask will be tested. If the BitMask is 0, this feature is disabled. Please note that the default node id of -1 will match with every bitmask != 0 </td></tr>
525 <tr><td class="paramname">bNoDebugObjects,:</td><td>Doesn't take debug objects into account when true. These are scene nodes with IsDebugObject() = true. </td></tr>
526 <tr><td class="paramname">root</td><td>If different from 0, the search is limited to the children of this node. </td></tr>
527 </table>
528 </dd>
529</dl>
530<dl class="return"><dt><b>Returns:</b></dt><dd>Visible scene node under screen coordinates with matching bits in its id. If there is no scene node under this position, 0 is returned. </dd></dl>
531
532</div>
533</div>
534<a class="anchor" id="a6032377ff769e42c3e28547794f015ea"></a><!-- doxytag: member="irr::scene::ISceneCollisionManager::getScreenCoordinatesFrom3DPosition" ref="a6032377ff769e42c3e28547794f015ea" args="(const core::vector3df &amp;pos, ICameraSceneNode *camera=0, bool useViewPort=false)=0" -->
535<div class="memitem">
536<div class="memproto">
537 <table class="memname">
538 <tr>
539 <td class="memname">virtual core::position2d&lt;<a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&gt; irr::scene::ISceneCollisionManager::getScreenCoordinatesFrom3DPosition </td>
540 <td>(</td>
541 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
542 <td class="paramname"><em>pos</em>, </td>
543 </tr>
544 <tr>
545 <td class="paramkey"></td>
546 <td></td>
547 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_camera_scene_node.html">ICameraSceneNode</a> *&#160;</td>
548 <td class="paramname"><em>camera</em> = <code>0</code>, </td>
549 </tr>
550 <tr>
551 <td class="paramkey"></td>
552 <td></td>
553 <td class="paramtype">bool&#160;</td>
554 <td class="paramname"><em>useViewPort</em> = <code>false</code>&#160;</td>
555 </tr>
556 <tr>
557 <td></td>
558 <td>)</td>
559 <td></td><td><code> [pure virtual]</code></td>
560 </tr>
561 </table>
562</div>
563<div class="memdoc">
564
565<p>Calculates 2d screen position from a 3d position. </p>
566<dl><dt><b>Parameters:</b></dt><dd>
567 <table class="params">
568 <tr><td class="paramname">pos,:</td><td>3D position in world space to be transformed into 2d. </td></tr>
569 <tr><td class="paramname">camera,:</td><td>Camera to be used. If null, the currently active camera is used. </td></tr>
570 <tr><td class="paramname">useViewPort,:</td><td>Calculate screen coordinates relative to the current view port. Please note that unless the driver does not take care of the view port, it is usually best to get the result in absolute screen coordinates (flag=false). </td></tr>
571 </table>
572 </dd>
573</dl>
574<dl class="return"><dt><b>Returns:</b></dt><dd>2d screen coordinates which a object in the 3d world would have if it would be rendered to the screen. If the 3d position is behind the camera, it is set to (-1000,-1000). In most cases you can ignore this fact, because if you use this method for drawing a decorator over a 3d object, it will be clipped by the screen borders. </dd></dl>
575
576</div>
577</div>
578<hr/>The documentation for this class was generated from the following file:<ul>
579<li><a class="el" href="_i_scene_collision_manager_8h_source.html">ISceneCollisionManager.h</a></li>
580</ul>
581</div>
582</div>
583 <div id="nav-path" class="navpath">
584 <ul>
585 <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li>
586 <li class="navelem"><a class="el" href="namespaceirr_1_1scene.html">scene</a> </li>
587 <li class="navelem"><a class="el" href="classirr_1_1scene_1_1_i_scene_collision_manager.html">ISceneCollisionManager</a> </li>
588<!-- window showing the filter options -->
589<div id="MSearchSelectWindow"
590 onmouseover="return searchBox.OnSearchSelectShow()"
591 onmouseout="return searchBox.OnSearchSelectHide()"
592 onkeydown="return searchBox.OnSearchSelectKey(event)">
593<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>
594
595<!-- iframe showing the search results (closed by default) -->
596<div id="MSearchResultsWindow">
597<iframe src="javascript:void(0)" frameborder="0"
598 name="MSearchResults" id="MSearchResults">
599</iframe>
600</div>
601
602
603 <li class="footer">
604<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
605Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:47 for Irrlicht 3D Engine by
606<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
607 </ul>
608 </div>
609
610
611</body>
612</html>