Revision 1378,
1.5 KB
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Line | |
---|
1 | #ifndef NX_INTERSECTION_SWEPT_SPHERES
|
---|
2 | #define NX_INTERSECTION_SWEPT_SPHERES
|
---|
3 | /** \addtogroup physics
|
---|
4 | @{
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "Nxp.h"
|
---|
8 | #include "NxSphere.h"
|
---|
9 | #include "PhysXLoader.h"
|
---|
10 |
|
---|
11 | /**
|
---|
12 | \brief Sphere-sphere sweep test.
|
---|
13 |
|
---|
14 | Returns true if spheres intersect during their linear motion along provided velocity vectors.
|
---|
15 |
|
---|
16 | \warning #NxCreatePhysicsSDK() must be called before using this function.
|
---|
17 |
|
---|
18 | \param[in] sphere0 First sphere to test. <b>Range:</b> See #NxSphere
|
---|
19 | \param[in] velocity0 Velocity of the first sphere(ie the vector to sweep the sphere along). <b>Range:</b> velocity/direction vector
|
---|
20 | \param[in] sphere1 Second sphere to test <b>Range:</b> See #NxSphere
|
---|
21 | \param[in] velocity1 Velocity of the second sphere(ie the vector to sweep the sphere along). <b>Range:</b> velocity/direction vector
|
---|
22 |
|
---|
23 | \return True if spheres intersect.
|
---|
24 |
|
---|
25 | <b>Platform:</b>
|
---|
26 | \li PC SW: Yes
|
---|
27 | \li PPU : Yes
|
---|
28 | \li PS3 : Yes
|
---|
29 | \li XB360: Yes
|
---|
30 |
|
---|
31 | @see NxSphere
|
---|
32 | */
|
---|
33 | NX_INLINE bool NX_CALL_CONV NxSweptSpheresIntersect( const NxSphere& sphere0, const NxVec3& velocity0,
|
---|
34 | const NxSphere& sphere1, const NxVec3& velocity1)
|
---|
35 | {
|
---|
36 | return NxGetUtilLib()->NxSweptSpheresIntersect(sphere0, velocity0,sphere1,velocity1);
|
---|
37 | }
|
---|
38 |
|
---|
39 | /** @} */
|
---|
40 | #endif
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | //AGCOPYRIGHTBEGIN
|
---|
47 | ///////////////////////////////////////////////////////////////////////////
|
---|
48 | // Copyright © 2005 AGEIA Technologies.
|
---|
49 | // All rights reserved. www.ageia.com
|
---|
50 | ///////////////////////////////////////////////////////////////////////////
|
---|
51 | //AGCOPYRIGHTEND
|
---|
52 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.