Panda3D
panda
src
physx
physxRaycastHit.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file physxRaycastHit.h
10
* @author enn0x
11
* @date 2009-10-21
12
*/
13
14
#ifndef PHYSXRAYCASTHIT_H
15
#define PHYSXRAYCASTHIT_H
16
17
#include "
pandabase.h
"
18
#include "
luse.h
"
19
20
#include "
config_physx.h
"
21
22
class
PhysxShape
;
23
24
/**
25
* This structure captures results for a single raycast query. See PhysxScene
26
* for raycasting methods.
27
*/
28
class
EXPCL_PANDAPHYSX
PhysxRaycastHit
{
29
30
PUBLISHED:
31
INLINE
PhysxRaycastHit
(
const
NxRaycastHit hit);
32
INLINE ~
PhysxRaycastHit
();
33
34
bool
is_empty()
const
;
35
36
PhysxShape
*get_shape()
const
;
37
LPoint3f get_impact_pos()
const
;
38
LVector3f get_impact_normal()
const
;
39
float
get_distance()
const
;
40
41
private
:
42
NxRaycastHit _hit;
43
};
44
45
#include "
physxRaycastHit.I
"
46
47
#endif // PHYSXRAYCASTHIT_H
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxRaycastHit
This structure captures results for a single raycast query.
Definition:
physxRaycastHit.h:28
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxRaycastHit.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxShape
Abstract base class for shapes.
Definition:
physxShape.h:39
config_physx.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:04 for Panda3D by
1.8.20