Revision 1378,
1.8 KB
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Rev | Line | |
---|
[1378] | 1 | #ifndef NX_PHYSICS_NXEFFECTOR
|
---|
| 2 | #define NX_PHYSICS_NXEFFECTOR
|
---|
| 3 | /*----------------------------------------------------------------------------*\
|
---|
| 4 | |
|
---|
| 5 | | Public Interface to NovodeX Technology
|
---|
| 6 | |
|
---|
| 7 | | www.novodex.com
|
---|
| 8 | |
|
---|
| 9 | \*----------------------------------------------------------------------------*/
|
---|
| 10 | /** \addtogroup physics
|
---|
| 11 | @{
|
---|
| 12 | */
|
---|
| 13 |
|
---|
| 14 | #include "Nxp.h"
|
---|
| 15 |
|
---|
| 16 | class NxSpringAndDamperEffector;
|
---|
| 17 | class NxScene;
|
---|
| 18 |
|
---|
| 19 | /**
|
---|
| 20 | \brief An effector is a class that gets called before each tick of the
|
---|
| 21 | scene.
|
---|
| 22 |
|
---|
| 23 | At this point it may apply any permissible effect
|
---|
| 24 | to the objects. For example: #NxSpringAndDamperEffector
|
---|
| 25 |
|
---|
| 26 | <b>Platform:</b>
|
---|
| 27 | \li PC SW: Yes
|
---|
| 28 | \li PPU : No
|
---|
| 29 | \li PS3 : Yes
|
---|
| 30 | \li XB360: Yes
|
---|
| 31 |
|
---|
| 32 | @see NxSpringAndDamperEffector NxScene.createSpringAndDamperEffector
|
---|
| 33 | */
|
---|
| 34 | class NxEffector
|
---|
| 35 | {
|
---|
| 36 | public:
|
---|
| 37 | /**
|
---|
| 38 | \brief Attempts to perform a downcast to the type returned.
|
---|
| 39 |
|
---|
| 40 | Returns 0 if this object is not of the appropriate type.
|
---|
| 41 |
|
---|
| 42 | \return If this is a spring and damper constraint a pointer otherwise NULL.
|
---|
| 43 |
|
---|
| 44 | <b>Platform:</b>
|
---|
| 45 | \li PC SW: Yes
|
---|
| 46 | \li PPU : No
|
---|
| 47 | \li PS3 : Yes
|
---|
| 48 | \li XB360: Yes
|
---|
| 49 |
|
---|
| 50 | @see NxSpringAndDamperEffector()
|
---|
| 51 | */
|
---|
| 52 | virtual NxSpringAndDamperEffector* isSpringAndDamperEffector() = 0;
|
---|
| 53 |
|
---|
| 54 | /**
|
---|
| 55 | \brief Retrieves the owner scene
|
---|
| 56 |
|
---|
| 57 | \return The scene which this effector belongs to.
|
---|
| 58 |
|
---|
| 59 | <b>Platform:</b>
|
---|
| 60 | \li PC SW: Yes
|
---|
| 61 | \li PPU : No
|
---|
| 62 | \li PS3 : Yes
|
---|
| 63 | \li XB360: Yes
|
---|
| 64 |
|
---|
| 65 | @see NxScene
|
---|
| 66 | */
|
---|
| 67 | virtual NxScene& getScene() = 0;
|
---|
| 68 |
|
---|
| 69 | void * userData; //!< user can assign this to whatever, usually to create a 1:1 relationship with a user object.
|
---|
| 70 | };
|
---|
| 71 |
|
---|
| 72 | /** @} */
|
---|
| 73 | #endif
|
---|
| 74 |
|
---|
| 75 |
|
---|
| 76 | //AGCOPYRIGHTBEGIN
|
---|
| 77 | ///////////////////////////////////////////////////////////////////////////
|
---|
| 78 | // Copyright © 2005 AGEIA Technologies.
|
---|
| 79 | // All rights reserved. www.ageia.com
|
---|
| 80 | ///////////////////////////////////////////////////////////////////////////
|
---|
| 81 | //AGCOPYRIGHTEND
|
---|
| 82 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.