Panda3D
panda
src
ode
odeBoxGeom.cxx
1
// Filename: odeBoxGeom.cxx
2
// Created by: joswilso (27Dec06)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "config_ode.h"
16
#include "odeBoxGeom.h"
17
18
TypeHandle
OdeBoxGeom::_type_handle;
19
20
OdeBoxGeom::
21
OdeBoxGeom(dGeomID
id
) :
22
OdeGeom
(id) {
23
}
24
25
OdeBoxGeom::
26
OdeBoxGeom(dReal lx, dReal ly, dReal lz) :
27
OdeGeom
(dCreateBox(0, lx, ly, lz)) {
28
}
29
30
OdeBoxGeom::
31
OdeBoxGeom(
OdeSpace
&space, dReal lx, dReal ly, dReal lz) :
32
OdeGeom
(dCreateBox(space.
get_id
(), lx, ly, lz)) {
33
}
34
35
OdeBoxGeom::
36
OdeBoxGeom(
OdeSpace
&space,
const
LVecBase3f
&size) :
37
OdeGeom
(dCreateBox(space.
get_id
(), size[0], size[1], size[2])) {
38
}
39
40
OdeBoxGeom::
41
~OdeBoxGeom() {
42
}
OdeGeom
Definition:
odeGeom.h:47
LVecBase3f
This is the base class for all three-component vectors and points.
Definition:
lvecBase3.h:105
OdeBody::get_id
dBodyID get_id() const
Returns the underlying dBodyID.
Definition:
odeBody.I:34
OdeSpace
Definition:
odeSpace.h:39
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
Generated on Wed May 17 2017 23:43:50 for Panda3D by
1.8.13