14 #ifndef PHYSICSMANAGER_H 15 #define PHYSICSMANAGER_H 54 INLINE
void attach_physical(
Physical *p);
59 INLINE
void clear_linear_forces();
60 INLINE
void clear_angular_forces();
61 INLINE
void clear_physicals();
63 INLINE
void set_viscosity(PN_stdfloat viscosity);
64 INLINE PN_stdfloat get_viscosity()
const;
70 void do_physics(PN_stdfloat dt);
71 void do_physics(PN_stdfloat dt,
Physical *p);
72 void init_random_seed();
74 virtual void output(std::ostream &out)
const;
75 virtual void write_physicals(std::ostream &out,
int indent=0)
const;
76 virtual void write_linear_forces(std::ostream &out,
int indent=0)
const;
77 virtual void write_angular_forces(std::ostream &out,
int indent=0)
const;
78 virtual void write(std::ostream &out,
int indent=0)
const;
80 virtual void debug_output(std::ostream &out,
int indent=0)
const;
87 PN_stdfloat _viscosity;
98 #endif // PHYSICSMANAGER_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure virtual base class for physical modeling.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A force that acts on a PhysicsObject by way of an Integrator.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Graph node that encapsulated a series of physical objects.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Physics don't get much higher-level than this.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Defines a set of physically modeled attributes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pure virtual parent of all quat-based forces.
Pure virtual base class for physical modeling.
This is a convenience class to specialize ConfigVariable as an integer type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.