Panda3D
 All Classes Functions Variables Enumerations
physxRay.h
00001 // Filename: physxRay.h
00002 // Created by:  enn0x (21Oct09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef PHYSXRAY_H
00016 #define PHYSXRAY_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "config_physx.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : PhysxRay
00025 // Description : Represents an ray as an origin and direction.
00026 //               The ray will be infinite if no length is given.
00027 ////////////////////////////////////////////////////////////////////
00028 class EXPCL_PANDAPHYSX PhysxRay {
00029 
00030 PUBLISHED:
00031   INLINE PhysxRay();
00032   INLINE ~PhysxRay();
00033 
00034   void set_length(float length);
00035   void set_origin(const LPoint3f &origin);
00036   void set_direction(const LVector3f &direction);
00037 
00038   float get_length() const;
00039   LPoint3f get_origin() const;
00040   LVector3f get_direction() const;
00041 
00042 public:
00043   NxRay _ray;
00044   NxReal _length;
00045 };
00046 
00047 #include "physxRay.I"
00048 
00049 #endif // PHYSRAY_H
 All Classes Functions Variables Enumerations