18 #include "pandabase.h"
19 #include "typedReferenceCount.h"
22 #include "ode_includes.h"
35 INLINE
void set_zero();
36 INLINE
void set_parameters(dReal themass,
37 dReal cgx, dReal cgy, dReal cgz,
38 dReal I11, dReal I22, dReal I33,
39 dReal I12, dReal I13, dReal I23);
40 INLINE
void set_parameters(dReal themass,
43 INLINE
void set_sphere(dReal density, dReal radius);
44 INLINE
void set_sphere_total(dReal total_mass, dReal radius);
45 INLINE
void set_capsule(dReal density,
int direction,
46 dReal radius, dReal length);
47 INLINE
void set_capsule_total(dReal total_mass,
int direction,
48 dReal radius, dReal length);
49 INLINE
void set_cylinder(dReal density,
int direction,
50 dReal radius, dReal length);
51 INLINE
void set_cylinder_total(dReal total_mass,
int direction,
52 dReal radius, dReal length);
53 INLINE
void set_box(dReal density,
54 dReal lx, dReal ly, dReal lz);
55 INLINE
void set_box(dReal density,
57 INLINE
void set_box_total(dReal total_mass,
58 dReal lx, dReal ly, dReal lz);
59 INLINE
void set_box_total(dReal total_mass,
61 INLINE
void adjust(dReal newmass);
62 INLINE
void translate(dReal x, dReal y, dReal z);
65 INLINE
void add(
OdeMass &other);
67 INLINE dReal get_magnitude()
const;
69 INLINE
LMatrix3f get_inertial_tensor()
const;
71 virtual void write(ostream &out = cout,
unsigned int indent=0)
const;
74 dMass* get_mass_ptr();
77 void operator = (
const OdeMass ©);
84 static void init_type() {
85 TypedReferenceCount::init_type();
86 register_type(_type_handle,
"OdeMass",
87 TypedReferenceCount::get_class_type());
90 return get_class_type();
92 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the base class for all three-component vectors and points.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
TypeHandle is the identifier used to differentiate C++ class types.
This is a 3-by-3 transform matrix.