Panda3D
panda
src
ode
odeSphereGeom.cxx
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 odeSphereGeom.cxx
10
* @author joswilso
11
* @date 2006-12-27
12
*/
13
14
#include "
config_ode.h
"
15
#include "
odeSphereGeom.h
"
16
17
TypeHandle
OdeSphereGeom::_type_handle;
18
19
OdeSphereGeom::
20
OdeSphereGeom(dGeomID
id
) :
21
OdeGeom
(id) {
22
}
23
24
OdeSphereGeom::
25
OdeSphereGeom(dReal radius) :
26
OdeGeom
(dCreateSphere(nullptr, radius)) {
27
}
28
29
OdeSphereGeom::
30
OdeSphereGeom(
OdeGeom
&geom) :
31
OdeGeom
(geom.
get_id
()) {
32
nassertv(dGeomGetClass(_id) == dSphereClass);
33
}
34
35
OdeSphereGeom::
36
OdeSphereGeom(
OdeSpace
&space, dReal radius) :
37
OdeGeom
(dCreateSphere(space.
get_id
(), radius)) {
38
}
39
40
OdeSphereGeom::
41
~OdeSphereGeom() {
42
}
OdeGeom::get_id
dGeomID get_id() const
Returns the underlying dGeomID.
Definition:
odeGeom.I:28
OdeSpace
Definition:
odeSpace.h:37
odeSphereGeom.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
config_ode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
OdeGeom
Definition:
odeGeom.h:45
Generated on Sun Dec 27 2020 13:23:06 for Panda3D by
1.8.20