Panda3D
panda
src
physx
physxConvexForceFieldShape.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 physxConvexForceFieldShape.h
10
* @author enn0x
11
* @date 2009-11-15
12
*/
13
14
#ifndef PHYSXCONVEXFORCEFIELDSHAPE_H
15
#define PHYSXCONVEXFORCEFIELDSHAPE_H
16
17
#include "
pandabase.h
"
18
19
#include "
physxForceFieldShape.h
"
20
#include "
physx_includes.h
"
21
22
class
PhysxConvexForceFieldShapeDesc
;
23
24
/**
25
* A convex shaped region used to define force field.
26
*/
27
class
EXPCL_PANDAPHYSX
PhysxConvexForceFieldShape
:
public
PhysxForceFieldShape
{
28
29
PUBLISHED:
30
INLINE
PhysxConvexForceFieldShape
();
31
INLINE ~
PhysxConvexForceFieldShape
();
32
33
void
save_to_desc(
PhysxConvexForceFieldShapeDesc
&shapeDesc)
const
;
34
35
public
:
36
INLINE NxForceFieldShape *ptr()
const
{
return
(NxForceFieldShape *)_ptr; };
37
38
void
link(NxForceFieldShape *shapePtr);
39
void
unlink();
40
41
private
:
42
NxConvexForceFieldShape *_ptr;
43
44
public
:
45
static
TypeHandle
get_class_type() {
46
return
_type_handle;
47
}
48
static
void
init_type() {
49
PhysxForceFieldShape::init_type();
50
register_type
(_type_handle,
"PhysxConvexForceFieldShape"
,
51
PhysxForceFieldShape::get_class_type());
52
}
53
virtual
TypeHandle
get_type()
const
{
54
return
get_class_type();
55
}
56
virtual
TypeHandle
force_init_type() {
57
init_type();
58
return
get_class_type();
59
}
60
61
private
:
62
static
TypeHandle
_type_handle;
63
};
64
65
#include "
physxConvexForceFieldShape.I
"
66
67
#endif // PHYSXCONVEXFORCEFIELDSHAPE_H
physxConvexForceFieldShape.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxForceFieldShape
Abstract base class for force field shapes.
Definition:
physxForceFieldShape.h:31
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition:
register_type.I:22
PhysxConvexForceFieldShapeDesc
A descriptor for a convex force field shape.
Definition:
physxConvexForceFieldShapeDesc.h:27
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
physxForceFieldShape.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxConvexForceFieldShape
A convex shaped region used to define force field.
Definition:
physxConvexForceFieldShape.h:27
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:04 for Panda3D by
1.8.20