Panda3D

odeBoxGeom.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 odeBoxGeom.cxx
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14 #include "config_ode.h"
15 #include "odeBoxGeom.h"
16
17 TypeHandle OdeBoxGeom::_type_handle;
18
19 OdeBoxGeom::
20 OdeBoxGeom(dGeomID id) :
21 OdeGeom(id) {
22 }
23
24 OdeBoxGeom::
25 OdeBoxGeom(dReal lx, dReal ly, dReal lz) :
26 OdeGeom(dCreateBox(nullptr, lx, ly, lz)) {
27 }
28
29 OdeBoxGeom::
30 OdeBoxGeom(OdeSpace &space, dReal lx, dReal ly, dReal lz) :
31 OdeGeom(dCreateBox(space.get_id(), lx, ly, lz)) {
32 }
33
34 OdeBoxGeom::
35 OdeBoxGeom(OdeSpace &space, const LVecBase3f &size) :
36 OdeGeom(dCreateBox(space.get_id(), size[0], size[1], size[2])) {
37 }
38
39 OdeBoxGeom::
40 ~OdeBoxGeom() {
41 }
OdeGeom
Definition: odeGeom.h:45
OdeSpace
Definition: odeSpace.h:37
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.
odeBoxGeom.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.