00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXRAYCASTHIT_H
00016 #define PHYSXRAYCASTHIT_H
00017
00018 #include "pandabase.h"
00019 #include "luse.h"
00020
00021 #include "config_physx.h"
00022
00023 class PhysxShape;
00024
00025
00026
00027
00028
00029
00030
00031 class EXPCL_PANDAPHYSX PhysxRaycastHit {
00032
00033 PUBLISHED:
00034 INLINE PhysxRaycastHit(const NxRaycastHit hit);
00035 INLINE ~PhysxRaycastHit();
00036
00037 bool is_empty() const;
00038
00039 PhysxShape *get_shape() const;
00040 LPoint3f get_impact_pos() const;
00041 LVector3f get_impact_normal() const;
00042 float get_distance() const;
00043
00044 private:
00045 NxRaycastHit _hit;
00046 };
00047
00048 #include "physxRaycastHit.I"
00049
00050 #endif // PHYSXRAYCASTHIT_H