Panda3D

Loading...
Searching...
No Matches
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
19OdeSphereGeom::
20OdeSphereGeom(dGeomID id) :
21 OdeGeom(id) {
22}
23
24OdeSphereGeom::
25OdeSphereGeom(dReal radius) :
26 OdeGeom(dCreateSphere(nullptr, radius)) {
27}
28
29OdeSphereGeom::
30OdeSphereGeom(OdeGeom &geom) :
31 OdeGeom(geom.get_id()) {
32 nassertv(dGeomGetClass(_id) == dSphereClass);
33}
34
35OdeSphereGeom::
36OdeSphereGeom(OdeSpace &space, dReal radius) :
37 OdeGeom(dCreateSphere(space.get_id(), radius)) {
38}
39
40OdeSphereGeom::
41~OdeSphereGeom() {
42}
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.
odeSphereGeom.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.