Panda3D

config_physics.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 config_physics.cxx
10 * @author charles
11 * @date 2000-07-17
12 */
13
14 #include "config_physics.h"
15 #include "physicsCollisionHandler.h"
16 #include "physicsObject.h"
17 #include "physicalNode.h"
18 #include "linearIntegrator.h"
19 #include "linearControlForce.h"
20 #include "angularIntegrator.h"
21 #include "forceNode.h"
22 #include "forces.h"
23 #include "actorNode.h"
24 #include "angularForce.h"
25 #include "angularVectorForce.h"
26
27 #include "dconfig.h"
28
29 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_PHYSICS)
30 #error Buildsystem error: BUILDING_PANDA_PHYSICS not defined
31 #endif
32
33 ConfigureDef(config_physics);
34 NotifyCategoryDef(physics, "");
35
36 ConfigureFn(config_physics) {
37 init_libphysics();
38 }
39
40
41 /**
42 * Initializes the library. This must be called at least once before any of
43 * the functions or classes in this library can be used. Normally it will be
44 * called by the static initializers and need not be called explicitly, but
45 * special cases exist.
46 */
47 void
48 init_libphysics() {
49 static bool initialized = false;
50 if (initialized) {
51 return;
52 }
53 initialized = true;
54
55 ActorNode::init_type();
56 AngularForce::init_type();
57 AngularVectorForce::init_type();
58 BaseForce::init_type();
59 ForceNode::init_type();
60 LinearControlForce::init_type();
61 LinearCylinderVortexForce::init_type();
62 LinearDistanceForce::init_type();
63 LinearForce::init_type();
64 LinearFrictionForce::init_type();
65 LinearJitterForce::init_type();
66 LinearNoiseForce::init_type();
67 LinearRandomForce::init_type();
68 LinearSinkForce::init_type();
69 LinearSourceForce::init_type();
70 LinearUserDefinedForce::init_type();
71 LinearVectorForce::init_type();
72 Physical::init_type();
73 PhysicsCollisionHandler::init_type();
74 PhysicalNode::init_type();
75 PhysicsObject::init_type();
76 }
actorNode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
angularForce.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
angularIntegrator.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
angularVectorForce.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
init_libphysics
void init_libphysics()
Initializes the library.
Definition: config_physics.cxx:48
config_physics.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
forceNode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
forces.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
linearControlForce.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
linearIntegrator.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physicalNode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physicsCollisionHandler.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physicsObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.