aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html624
1 files changed, 624 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html
new file mode 100644
index 0000000..05f89be
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html
@@ -0,0 +1,624 @@
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::ISceneNodeAnimatorCollisionResponse 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_node_animator_collision_response.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::ISceneNodeAnimatorCollisionResponse Class Reference</div> </div>
91</div>
92<div class="contents">
93<!-- doxytag: class="irr::scene::ISceneNodeAnimatorCollisionResponse" --><!-- doxytag: inherits="irr::scene::ISceneNodeAnimator" -->
94<p>Special scene node animator for doing automatic collision detection and response.
95 <a href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#details">More...</a></p>
96
97<p><code>#include &lt;<a class="el" href="_i_scene_node_animator_collision_response_8h_source.html">ISceneNodeAnimatorCollisionResponse.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::ISceneNodeAnimatorCollisionResponse:</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_node_animator_collision_response.png" usemap="#irr::scene::ISceneNodeAnimatorCollisionResponse_map" alt=""/>
105 <map id="irr::scene::ISceneNodeAnimatorCollisionResponse_map" name="irr::scene::ISceneNodeAnimatorCollisionResponse_map">
106<area href="classirr_1_1scene_1_1_i_scene_node_animator.html" title="Animates a scene node. Can animate position, rotation, material, and so on." alt="irr::scene::ISceneNodeAnimator" shape="rect" coords="151,112,444,136"/>
107<area href="classirr_1_1io_1_1_i_attribute_exchanging_object.html" title="An object which is able to serialize and deserialize its attributes into an attributes object..." alt="irr::io::IAttributeExchangingObject" shape="rect" coords="0,56,293,80"/>
108<area href="classirr_1_1_i_event_receiver.html" title="Interface of an object which can receive events." alt="irr::IEventReceiver" shape="rect" coords="303,56,596,80"/>
109<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,293,24"/>
110</map>
111 </div></div>
112
113<p><a href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response-members.html">List of all members.</a></p>
114<h2><a name="pub-methods"></a>
115Public Member Functions</h2>
116<ul>
117<li>virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#ab6b85fb4f76e2d0c03cf2c6b326bddde">~ISceneNodeAnimatorCollisionResponse</a> ()
118<dl class="el"><dd class="mdescRight">Destructor. <a href="#ab6b85fb4f76e2d0c03cf2c6b326bddde"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a8bb04bc4d7de2203879a8392d024f466">collisionOccurred</a> () const =0
119<dl class="el"><dd class="mdescRight">Returns true if a collision occurred during the last <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator.html#ab2170d133db16de148d0f6841c06bc84" title="Animates a scene node.">animateNode()</a> <a href="#a8bb04bc4d7de2203879a8392d024f466"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#ad08e1d7fa77326c299f42a325a7edefb">getAnimateTarget</a> () const =0
120<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_node_animator_collision_response.html#a5a975ddf3d776d6bb4c6d44c36cc74fd">getCollisionNode</a> (void) const =0
121<dl class="el"><dd class="mdescRight">Returns the node that was collided with. <a href="#a5a975ddf3d776d6bb4c6d44c36cc74fd"></a><br/></dl><li>virtual const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp; <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#acb39b68d18f721960ac73dc158968479">getCollisionPoint</a> () const =0
122<dl class="el"><dd class="mdescRight">Returns the last point of collision. <a href="#acb39b68d18f721960ac73dc158968479"></a><br/></dl><li>virtual const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp; <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a788542083dda874c63e278891535a9f4">getCollisionResultPosition</a> (void) const =0
123<dl class="el"><dd class="mdescRight">Returns the position that the target node will be moved to, unless the collision is consumed in a callback. <a href="#a788542083dda874c63e278891535a9f4"></a><br/></dl><li>virtual const <a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a> &amp; <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#abb9d0576446a64e9944ef15a04722591">getCollisionTriangle</a> () const =0
124<dl class="el"><dd class="mdescRight">Returns the last triangle that caused a collision. <a href="#abb9d0576446a64e9944ef15a04722591"></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_node_animator_collision_response.html#a92965919db3dfbaab2d1f4987a2c52c1">getEllipsoidRadius</a> () const =0
125<dl class="el"><dd class="mdescRight">Returns the radius of the ellipsoid for collision detection and response. <a href="#a92965919db3dfbaab2d1f4987a2c52c1"></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_node_animator_collision_response.html#aff0a2ad6ff375a85e08a3226e3267286">getEllipsoidTranslation</a> () const =0
126<dl class="el"><dd class="mdescRight">Get the translation of the ellipsoid for collision detection. <a href="#aff0a2ad6ff375a85e08a3226e3267286"></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_node_animator_collision_response.html#ab9fdc94d0c9b32f20bc0b61a14748b09">getGravity</a> () const =0
127<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_node_animator_collision_response.html#a11b1c54ec705f4ba8b0bb3facb0f09cb">getTargetNode</a> (void) const =0
128<dl class="el"><dd class="mdescRight">Gets the single node that this animator is acting on. <a href="#a11b1c54ec705f4ba8b0bb3facb0f09cb"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> * <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a58e106171ca57a4877d7a6f0edd9762f">getWorld</a> () const =0
129<dl class="el"><dd class="mdescRight">Get the current triangle selector containing all triangles for collision detection. <a href="#a58e106171ca57a4877d7a6f0edd9762f"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a66f5534c1d2ac0e2ea52e7b21a3c91d7">isFalling</a> () const =0
130<dl class="el"><dd class="mdescRight">Check if the attached scene node is falling. <a href="#a66f5534c1d2ac0e2ea52e7b21a3c91d7"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a409b98d04be89fb06cce3384e0188abf">jump</a> (<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> jumpSpeed)=0
131<dl class="el"><dd class="mdescRight">'Jump' the animator, by adding a jump speed opposite to its gravity <a href="#a409b98d04be89fb06cce3384e0188abf"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a402cbe4934ad10f18762001458c939d9">setAnimateTarget</a> (bool enable)=0
132<dl class="el"><dd class="mdescRight">Should the Target react on collision ( default = true ) <a href="#a402cbe4934ad10f18762001458c939d9"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a2b97f977b446200c5dd22230aec5d275">setCollisionCallback</a> (<a class="el" href="classirr_1_1scene_1_1_i_collision_callback.html">ICollisionCallback</a> *callback)=0
133<dl class="el"><dd class="mdescRight">Sets a callback interface which will be called if a collision occurs. <a href="#a2b97f977b446200c5dd22230aec5d275"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a71af73590016ba936340a79467690d3f">setEllipsoidRadius</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;radius)=0
134<dl class="el"><dd class="mdescRight">Sets the radius of the ellipsoid for collision detection and response. <a href="#a71af73590016ba936340a79467690d3f"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a234ec747d320d70dd3e2a4143782ffc7">setEllipsoidTranslation</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;translation)=0
135<dl class="el"><dd class="mdescRight">Set translation of the collision ellipsoid. <a href="#a234ec747d320d70dd3e2a4143782ffc7"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#af366695a82153c144b58c65cb4d092f3">setGravity</a> (const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;gravity)=0
136<dl class="el"><dd class="mdescRight">Sets the gravity of the environment. <a href="#af366695a82153c144b58c65cb4d092f3"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a5b291ba9249c451779f76ab2154aa3c2">setTargetNode</a> (<a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *node)=0
137<dl class="el"><dd class="mdescRight">Set the single node that this animator will act on. <a href="#a5b291ba9249c451779f76ab2154aa3c2"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a42aa84d4843a734f8dd1f20b5c92ef06">setWorld</a> (<a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> *newWorld)=0
138<dl class="el"><dd class="mdescRight">Sets a triangle selector holding all triangles of the world with which the scene node may collide. <a href="#a42aa84d4843a734f8dd1f20b5c92ef06"></a><br/></dl></ul>
139<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
140<div class="textblock"><p>Special scene node animator for doing automatic collision detection and response. </p>
141<p>This scene node animator can be attached to any single scene node and will then prevent it from moving through specified collision geometry (e.g. walls and floors of the) world, as well as having it fall under gravity. This animator provides a simple implementation of first person shooter cameras. Attach it to a camera, and the camera will behave as the player control in a first person shooter game: The camera stops and slides at walls, walks up stairs, falls down if there is no floor under it, and so on.</p>
142<p>The animator will treat any change in the position of its target scene node as movement, including a setPosition(), as movement. If you want to teleport the target scene node manually to a location without it being effected by collision geometry, then call setTargetNode(node) after calling node-&gt;setPosition(). </p>
143
144<p>Definition at line <a class="el" href="_i_scene_node_animator_collision_response_8h_source.html#l00053">53</a> of file <a class="el" href="_i_scene_node_animator_collision_response_8h_source.html">ISceneNodeAnimatorCollisionResponse.h</a>.</p>
145</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
146<a class="anchor" id="ab6b85fb4f76e2d0c03cf2c6b326bddde"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::~ISceneNodeAnimatorCollisionResponse" ref="ab6b85fb4f76e2d0c03cf2c6b326bddde" args="()" -->
147<div class="memitem">
148<div class="memproto">
149 <table class="memname">
150 <tr>
151 <td class="memname">virtual irr::scene::ISceneNodeAnimatorCollisionResponse::~ISceneNodeAnimatorCollisionResponse </td>
152 <td>(</td>
153 <td class="paramname"></td><td>)</td>
154 <td><code> [inline, virtual]</code></td>
155 </tr>
156 </table>
157</div>
158<div class="memdoc">
159
160<p>Destructor. </p>
161
162<p>Definition at line <a class="el" href="_i_scene_node_animator_collision_response_8h_source.html#l00058">58</a> of file <a class="el" href="_i_scene_node_animator_collision_response_8h_source.html">ISceneNodeAnimatorCollisionResponse.h</a>.</p>
163
164</div>
165</div>
166<hr/><h2>Member Function Documentation</h2>
167<a class="anchor" id="a8bb04bc4d7de2203879a8392d024f466"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::collisionOccurred" ref="a8bb04bc4d7de2203879a8392d024f466" args="() const =0" -->
168<div class="memitem">
169<div class="memproto">
170 <table class="memname">
171 <tr>
172 <td class="memname">virtual bool irr::scene::ISceneNodeAnimatorCollisionResponse::collisionOccurred </td>
173 <td>(</td>
174 <td class="paramname"></td><td>)</td>
175 <td> const<code> [pure virtual]</code></td>
176 </tr>
177 </table>
178</div>
179<div class="memdoc">
180
181<p>Returns true if a collision occurred during the last <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator.html#ab2170d133db16de148d0f6841c06bc84" title="Animates a scene node.">animateNode()</a> </p>
182
183</div>
184</div>
185<a class="anchor" id="ad08e1d7fa77326c299f42a325a7edefb"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getAnimateTarget" ref="ad08e1d7fa77326c299f42a325a7edefb" args="() const =0" -->
186<div class="memitem">
187<div class="memproto">
188 <table class="memname">
189 <tr>
190 <td class="memname">virtual bool irr::scene::ISceneNodeAnimatorCollisionResponse::getAnimateTarget </td>
191 <td>(</td>
192 <td class="paramname"></td><td>)</td>
193 <td> const<code> [pure virtual]</code></td>
194 </tr>
195 </table>
196</div>
197<div class="memdoc">
198
199</div>
200</div>
201<a class="anchor" id="a5a975ddf3d776d6bb4c6d44c36cc74fd"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionNode" ref="a5a975ddf3d776d6bb4c6d44c36cc74fd" args="(void) const =0" -->
202<div class="memitem">
203<div class="memproto">
204 <table class="memname">
205 <tr>
206 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a>* irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionNode </td>
207 <td>(</td>
208 <td class="paramtype">void&#160;</td>
209 <td class="paramname"></td><td>)</td>
210 <td> const<code> [pure virtual]</code></td>
211 </tr>
212 </table>
213</div>
214<div class="memdoc">
215
216<p>Returns the node that was collided with. </p>
217
218</div>
219</div>
220<a class="anchor" id="acb39b68d18f721960ac73dc158968479"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionPoint" ref="acb39b68d18f721960ac73dc158968479" args="() const =0" -->
221<div class="memitem">
222<div class="memproto">
223 <table class="memname">
224 <tr>
225 <td class="memname">virtual const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>&amp; irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionPoint </td>
226 <td>(</td>
227 <td class="paramname"></td><td>)</td>
228 <td> const<code> [pure virtual]</code></td>
229 </tr>
230 </table>
231</div>
232<div class="memdoc">
233
234<p>Returns the last point of collision. </p>
235
236</div>
237</div>
238<a class="anchor" id="a788542083dda874c63e278891535a9f4"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionResultPosition" ref="a788542083dda874c63e278891535a9f4" args="(void) const =0" -->
239<div class="memitem">
240<div class="memproto">
241 <table class="memname">
242 <tr>
243 <td class="memname">virtual const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>&amp; irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionResultPosition </td>
244 <td>(</td>
245 <td class="paramtype">void&#160;</td>
246 <td class="paramname"></td><td>)</td>
247 <td> const<code> [pure virtual]</code></td>
248 </tr>
249 </table>
250</div>
251<div class="memdoc">
252
253<p>Returns the position that the target node will be moved to, unless the collision is consumed in a callback. </p>
254<p>If you have a collision callback registered, and it consumes the collision, then the node will ignore the collision and will not stop at this position. Instead, it will move fully to the position that caused the collision to occur. </p>
255
256</div>
257</div>
258<a class="anchor" id="abb9d0576446a64e9944ef15a04722591"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionTriangle" ref="abb9d0576446a64e9944ef15a04722591" args="() const =0" -->
259<div class="memitem">
260<div class="memproto">
261 <table class="memname">
262 <tr>
263 <td class="memname">virtual const <a class="el" href="namespaceirr_1_1core.html#a1112835405bbec5dadf031dc7934e7d0">core::triangle3df</a>&amp; irr::scene::ISceneNodeAnimatorCollisionResponse::getCollisionTriangle </td>
264 <td>(</td>
265 <td class="paramname"></td><td>)</td>
266 <td> const<code> [pure virtual]</code></td>
267 </tr>
268 </table>
269</div>
270<div class="memdoc">
271
272<p>Returns the last triangle that caused a collision. </p>
273
274</div>
275</div>
276<a class="anchor" id="a92965919db3dfbaab2d1f4987a2c52c1"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getEllipsoidRadius" ref="a92965919db3dfbaab2d1f4987a2c52c1" args="() const =0" -->
277<div class="memitem">
278<div class="memproto">
279 <table class="memname">
280 <tr>
281 <td class="memname">virtual <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> irr::scene::ISceneNodeAnimatorCollisionResponse::getEllipsoidRadius </td>
282 <td>(</td>
283 <td class="paramname"></td><td>)</td>
284 <td> const<code> [pure virtual]</code></td>
285 </tr>
286 </table>
287</div>
288<div class="memdoc">
289
290<p>Returns the radius of the ellipsoid for collision detection and response. </p>
291<dl class="return"><dt><b>Returns:</b></dt><dd>Radius of the ellipsoid. </dd></dl>
292
293</div>
294</div>
295<a class="anchor" id="aff0a2ad6ff375a85e08a3226e3267286"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getEllipsoidTranslation" ref="aff0a2ad6ff375a85e08a3226e3267286" args="() const =0" -->
296<div class="memitem">
297<div class="memproto">
298 <table class="memname">
299 <tr>
300 <td class="memname">virtual <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> irr::scene::ISceneNodeAnimatorCollisionResponse::getEllipsoidTranslation </td>
301 <td>(</td>
302 <td class="paramname"></td><td>)</td>
303 <td> const<code> [pure virtual]</code></td>
304 </tr>
305 </table>
306</div>
307<div class="memdoc">
308
309<p>Get the translation of the ellipsoid for collision detection. </p>
310<p>See <a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html#a234ec747d320d70dd3e2a4143782ffc7" title="Set translation of the collision ellipsoid.">ISceneNodeAnimatorCollisionResponse::setEllipsoidTranslation()</a> for more details. </p>
311<dl class="return"><dt><b>Returns:</b></dt><dd>Translation of the ellipsoid relative to the position of the scene node. </dd></dl>
312
313</div>
314</div>
315<a class="anchor" id="ab9fdc94d0c9b32f20bc0b61a14748b09"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getGravity" ref="ab9fdc94d0c9b32f20bc0b61a14748b09" args="() const =0" -->
316<div class="memitem">
317<div class="memproto">
318 <table class="memname">
319 <tr>
320 <td class="memname">* virtual <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> irr::scene::ISceneNodeAnimatorCollisionResponse::getGravity </td>
321 <td>(</td>
322 <td class="paramname"></td><td>)</td>
323 <td> const<code> [pure virtual]</code></td>
324 </tr>
325 </table>
326</div>
327<div class="memdoc">
328<p>Get current vector of gravity. </p>
329<dl class="return"><dt><b>Returns:</b></dt><dd>Gravity vector. </dd></dl>
330
331</div>
332</div>
333<a class="anchor" id="a11b1c54ec705f4ba8b0bb3facb0f09cb"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getTargetNode" ref="a11b1c54ec705f4ba8b0bb3facb0f09cb" args="(void) const =0" -->
334<div class="memitem">
335<div class="memproto">
336 <table class="memname">
337 <tr>
338 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a>* irr::scene::ISceneNodeAnimatorCollisionResponse::getTargetNode </td>
339 <td>(</td>
340 <td class="paramtype">void&#160;</td>
341 <td class="paramname"></td><td>)</td>
342 <td> const<code> [pure virtual]</code></td>
343 </tr>
344 </table>
345</div>
346<div class="memdoc">
347
348<p>Gets the single node that this animator is acting on. </p>
349<dl class="return"><dt><b>Returns:</b></dt><dd>The node that this animator is acting on. </dd></dl>
350
351</div>
352</div>
353<a class="anchor" id="a58e106171ca57a4877d7a6f0edd9762f"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::getWorld" ref="a58e106171ca57a4877d7a6f0edd9762f" args="() const =0" -->
354<div class="memitem">
355<div class="memproto">
356 <table class="memname">
357 <tr>
358 <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a>* irr::scene::ISceneNodeAnimatorCollisionResponse::getWorld </td>
359 <td>(</td>
360 <td class="paramname"></td><td>)</td>
361 <td> const<code> [pure virtual]</code></td>
362 </tr>
363 </table>
364</div>
365<div class="memdoc">
366
367<p>Get the current triangle selector containing all triangles for collision detection. </p>
368
369</div>
370</div>
371<a class="anchor" id="a66f5534c1d2ac0e2ea52e7b21a3c91d7"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::isFalling" ref="a66f5534c1d2ac0e2ea52e7b21a3c91d7" args="() const =0" -->
372<div class="memitem">
373<div class="memproto">
374 <table class="memname">
375 <tr>
376 <td class="memname">virtual bool irr::scene::ISceneNodeAnimatorCollisionResponse::isFalling </td>
377 <td>(</td>
378 <td class="paramname"></td><td>)</td>
379 <td> const<code> [pure virtual]</code></td>
380 </tr>
381 </table>
382</div>
383<div class="memdoc">
384
385<p>Check if the attached scene node is falling. </p>
386<p>Falling means that there is no blocking wall from the scene node in the direction of the gravity. The implementation of this method is very fast, no collision detection is done when invoking it. </p>
387<dl class="return"><dt><b>Returns:</b></dt><dd>True if the scene node is falling, false if not. </dd></dl>
388
389</div>
390</div>
391<a class="anchor" id="a409b98d04be89fb06cce3384e0188abf"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::jump" ref="a409b98d04be89fb06cce3384e0188abf" args="(f32 jumpSpeed)=0" -->
392<div class="memitem">
393<div class="memproto">
394 <table class="memname">
395 <tr>
396 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::jump </td>
397 <td>(</td>
398 <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a>&#160;</td>
399 <td class="paramname"><em>jumpSpeed</em></td><td>)</td>
400 <td><code> [pure virtual]</code></td>
401 </tr>
402 </table>
403</div>
404<div class="memdoc">
405
406<p>'Jump' the animator, by adding a jump speed opposite to its gravity </p>
407<dl><dt><b>Parameters:</b></dt><dd>
408 <table class="params">
409 <tr><td class="paramname">jumpSpeed</td><td>The initial speed of the jump; the velocity will be opposite to this animator's gravity vector. </td></tr>
410 </table>
411 </dd>
412</dl>
413
414</div>
415</div>
416<a class="anchor" id="a402cbe4934ad10f18762001458c939d9"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setAnimateTarget" ref="a402cbe4934ad10f18762001458c939d9" args="(bool enable)=0" -->
417<div class="memitem">
418<div class="memproto">
419 <table class="memname">
420 <tr>
421 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setAnimateTarget </td>
422 <td>(</td>
423 <td class="paramtype">bool&#160;</td>
424 <td class="paramname"><em>enable</em></td><td>)</td>
425 <td><code> [pure virtual]</code></td>
426 </tr>
427 </table>
428</div>
429<div class="memdoc">
430
431<p>Should the Target react on collision ( default = true ) </p>
432
433</div>
434</div>
435<a class="anchor" id="a2b97f977b446200c5dd22230aec5d275"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setCollisionCallback" ref="a2b97f977b446200c5dd22230aec5d275" args="(ICollisionCallback *callback)=0" -->
436<div class="memitem">
437<div class="memproto">
438 <table class="memname">
439 <tr>
440 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setCollisionCallback </td>
441 <td>(</td>
442 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_collision_callback.html">ICollisionCallback</a> *&#160;</td>
443 <td class="paramname"><em>callback</em></td><td>)</td>
444 <td><code> [pure virtual]</code></td>
445 </tr>
446 </table>
447</div>
448<div class="memdoc">
449
450<p>Sets a callback interface which will be called if a collision occurs. </p>
451<dl><dt><b>Parameters:</b></dt><dd>
452 <table class="params">
453 <tr><td class="paramname">callback,:</td><td>collision callback handler that will be called when a collision occurs. Set this to 0 to disable the callback. </td></tr>
454 </table>
455 </dd>
456</dl>
457
458</div>
459</div>
460<a class="anchor" id="a71af73590016ba936340a79467690d3f"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setEllipsoidRadius" ref="a71af73590016ba936340a79467690d3f" args="(const core::vector3df &amp;radius)=0" -->
461<div class="memitem">
462<div class="memproto">
463 <table class="memname">
464 <tr>
465 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setEllipsoidRadius </td>
466 <td>(</td>
467 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
468 <td class="paramname"><em>radius</em></td><td>)</td>
469 <td><code> [pure virtual]</code></td>
470 </tr>
471 </table>
472</div>
473<div class="memdoc">
474
475<p>Sets the radius of the ellipsoid for collision detection and response. </p>
476<p>If you have a scene node, and you are unsure about how big the radius should be, you could use the following code to determine it: </p>
477<div class="fragment"><pre class="fragment"> core::aabbox&lt;f32&gt; box = yourSceneNode-&gt;getBoundingBox();
478 <a class="code" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811" title="Typedef for a f32 3d vector.">core::vector3df</a> radius = box.MaxEdge - box.getCenter();
479</pre></div> <dl><dt><b>Parameters:</b></dt><dd>
480 <table class="params">
481 <tr><td class="paramname">radius,:</td><td>New radius of the ellipsoid. </td></tr>
482 </table>
483 </dd>
484</dl>
485
486</div>
487</div>
488<a class="anchor" id="a234ec747d320d70dd3e2a4143782ffc7"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setEllipsoidTranslation" ref="a234ec747d320d70dd3e2a4143782ffc7" args="(const core::vector3df &amp;translation)=0" -->
489<div class="memitem">
490<div class="memproto">
491 <table class="memname">
492 <tr>
493 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setEllipsoidTranslation </td>
494 <td>(</td>
495 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
496 <td class="paramname"><em>translation</em></td><td>)</td>
497 <td><code> [pure virtual]</code></td>
498 </tr>
499 </table>
500</div>
501<div class="memdoc">
502
503<p>Set translation of the collision ellipsoid. </p>
504<p>By default, the ellipsoid for collision detection is created around the center of the scene node, which means that the ellipsoid surrounds it completely. If this is not what you want, you may specify a translation for the ellipsoid. </p>
505<dl><dt><b>Parameters:</b></dt><dd>
506 <table class="params">
507 <tr><td class="paramname">translation,:</td><td>Translation of the ellipsoid relative to the position of the scene node. </td></tr>
508 </table>
509 </dd>
510</dl>
511
512</div>
513</div>
514<a class="anchor" id="af366695a82153c144b58c65cb4d092f3"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setGravity" ref="af366695a82153c144b58c65cb4d092f3" args="(const core::vector3df &amp;gravity)=0" -->
515<div class="memitem">
516<div class="memproto">
517 <table class="memname">
518 <tr>
519 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setGravity </td>
520 <td>(</td>
521 <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &amp;&#160;</td>
522 <td class="paramname"><em>gravity</em></td><td>)</td>
523 <td><code> [pure virtual]</code></td>
524 </tr>
525 </table>
526</div>
527<div class="memdoc">
528
529<p>Sets the gravity of the environment. </p>
530<p>A good example value would be <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811" title="Typedef for a f32 3d vector.">core::vector3df</a>(0,-100.0f,0) for letting gravity affect all object to fall down. For bigger gravity, make increase the length of the vector. You can disable gravity by setting it to core::vector3df(0,0,0); </p>
531<dl><dt><b>Parameters:</b></dt><dd>
532 <table class="params">
533 <tr><td class="paramname">gravity,:</td><td>New gravity vector. </td></tr>
534 </table>
535 </dd>
536</dl>
537
538</div>
539</div>
540<a class="anchor" id="a5b291ba9249c451779f76ab2154aa3c2"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setTargetNode" ref="a5b291ba9249c451779f76ab2154aa3c2" args="(ISceneNode *node)=0" -->
541<div class="memitem">
542<div class="memproto">
543 <table class="memname">
544 <tr>
545 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setTargetNode </td>
546 <td>(</td>
547 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *&#160;</td>
548 <td class="paramname"><em>node</em></td><td>)</td>
549 <td><code> [pure virtual]</code></td>
550 </tr>
551 </table>
552</div>
553<div class="memdoc">
554
555<p>Set the single node that this animator will act on. </p>
556<dl><dt><b>Parameters:</b></dt><dd>
557 <table class="params">
558 <tr><td class="paramname">node</td><td>The new target node. Setting this will force the animator to update its last target position for the node, allowing setPosition() to teleport the node through collision geometry. </td></tr>
559 </table>
560 </dd>
561</dl>
562
563</div>
564</div>
565<a class="anchor" id="a42aa84d4843a734f8dd1f20b5c92ef06"></a><!-- doxytag: member="irr::scene::ISceneNodeAnimatorCollisionResponse::setWorld" ref="a42aa84d4843a734f8dd1f20b5c92ef06" args="(ITriangleSelector *newWorld)=0" -->
566<div class="memitem">
567<div class="memproto">
568 <table class="memname">
569 <tr>
570 <td class="memname">virtual void irr::scene::ISceneNodeAnimatorCollisionResponse::setWorld </td>
571 <td>(</td>
572 <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_triangle_selector.html">ITriangleSelector</a> *&#160;</td>
573 <td class="paramname"><em>newWorld</em></td><td>)</td>
574 <td><code> [pure virtual]</code></td>
575 </tr>
576 </table>
577</div>
578<div class="memdoc">
579
580<p>Sets a triangle selector holding all triangles of the world with which the scene node may collide. </p>
581<dl><dt><b>Parameters:</b></dt><dd>
582 <table class="params">
583 <tr><td class="paramname">newWorld,:</td><td>New triangle selector containing triangles to let the scene node collide with. </td></tr>
584 </table>
585 </dd>
586</dl>
587
588</div>
589</div>
590<hr/>The documentation for this class was generated from the following file:<ul>
591<li><a class="el" href="_i_scene_node_animator_collision_response_8h_source.html">ISceneNodeAnimatorCollisionResponse.h</a></li>
592</ul>
593</div>
594</div>
595 <div id="nav-path" class="navpath">
596 <ul>
597 <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li>
598 <li class="navelem"><a class="el" href="namespaceirr_1_1scene.html">scene</a> </li>
599 <li class="navelem"><a class="el" href="classirr_1_1scene_1_1_i_scene_node_animator_collision_response.html">ISceneNodeAnimatorCollisionResponse</a> </li>
600<!-- window showing the filter options -->
601<div id="MSearchSelectWindow"
602 onmouseover="return searchBox.OnSearchSelectShow()"
603 onmouseout="return searchBox.OnSearchSelectHide()"
604 onkeydown="return searchBox.OnSearchSelectKey(event)">
605<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>
606
607<!-- iframe showing the search results (closed by default) -->
608<div id="MSearchResultsWindow">
609<iframe src="javascript:void(0)" frameborder="0"
610 name="MSearchResults" id="MSearchResults">
611</iframe>
612</div>
613
614
615 <li class="footer">
616<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
617Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:47 for Irrlicht 3D Engine by
618<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
619 </ul>
620 </div>
621
622
623</body>
624</html>