Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CollisionObject.h 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
  2. /*================================================================
  3. *
  4. * Project : libHel
  5. * Author : Terry 'Mongoose' Hendrix II
  6. * Website : http://www.westga.edu/~stu7440/
  7. * Email : stu7440@westga.edu
  8. * Object : CollisionObject
  9. * License : No use w/o permission (C) 2002 Mongoose
  10. * Comments: Bounding volume class for world/vis
  11. * culling/clipping/collision stuff
  12. *
  13. *
  14. * This file was generated using Mongoose's C++
  15. * template generator script. <stu7440@westga.edu>
  16. *
  17. *-- Test Defines -----------------------------------------------
  18. *
  19. * UNIT_TEST_BOUNDINGVOLUME - Builds BoundingVolume class unit test
  20. *
  21. *-- History ------------------------------------------------
  22. *
  23. * 2002.11.27:
  24. * Mongoose - Created
  25. ================================================================*/
  26. #ifndef GUARD__LIBHEL_MONGOOSE_COLLISIONOBJECT_H_
  27. #define GUARD__LIBHEL_MONGOOSE_COLLISIONOBJECT_H_
  28. #include <hel/Vector3d.h>
  29. class CollisionObject
  30. {
  31. public:
  32. ////////////////////////////////////////////////////////////
  33. // Constructors
  34. ////////////////////////////////////////////////////////////
  35. CollisionObject();
  36. /*------------------------------------------------------
  37. * Pre :
  38. * Post : Constructs an object of CollisionObject
  39. *
  40. *-- History ------------------------------------------
  41. *
  42. * 2002.11.27:
  43. * Mongoose - Created
  44. ------------------------------------------------------*/
  45. ~CollisionObject();
  46. /*------------------------------------------------------
  47. * Pre : CollisionObject object is allocated
  48. * Post : Deconstructs an object of CollisionObject
  49. *
  50. *-- History ------------------------------------------
  51. *
  52. * 2002.11.27:
  53. * Mongoose - Created
  54. ------------------------------------------------------*/
  55. ////////////////////////////////////////////////////////////
  56. // Public Accessors
  57. ////////////////////////////////////////////////////////////
  58. bool intersectPoint(Vector3d p);
  59. ////////////////////////////////////////////////////////////
  60. // Public Mutators
  61. ////////////////////////////////////////////////////////////
  62. Vector3d mIntersection;
  63. private:
  64. ////////////////////////////////////////////////////////////
  65. // Private Accessors
  66. ////////////////////////////////////////////////////////////
  67. ////////////////////////////////////////////////////////////
  68. // Private Mutators
  69. ////////////////////////////////////////////////////////////
  70. /* */
  71. };
  72. #endif