14#ifndef BASEINTEGRATOR_H
15#define BASEINTEGRATOR_H
34class EXPCL_PANDA_PHYSICS BaseIntegrator :
public ReferenceCount {
36 typedef epvector<LMatrix4> MatrixVector;
40 virtual ~BaseIntegrator();
43 virtual void output(std::ostream &out)
const;
48 virtual void write(std::ostream &out,
int indent=0)
const;
53 INLINE
const MatrixVector &get_precomputed_linear_matrices()
const;
54 INLINE
const MatrixVector &get_precomputed_angular_matrices()
const;
56 void precompute_linear_matrices(
Physical *physical,
57 const LinearForceVector &forces);
58 void precompute_angular_matrices(
Physical *physical,
59 const AngularForceVector &forces);
65 MatrixVector _precomputed_linear_matrices;
66 MatrixVector _precomputed_angular_matrices;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pure virtual parent of all quat-based forces.
virtual void write_precomputed_angular_matrices(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void write_precomputed_linear_matrices(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
A force that acts on a PhysicsObject by way of an Integrator.
Defines a set of physically modeled attributes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.