33 INLINE
void set_zero();
34 INLINE
void set_parameters(dReal themass,
35 dReal cgx, dReal cgy, dReal cgz,
36 dReal I11, dReal I22, dReal I33,
37 dReal I12, dReal I13, dReal I23);
38 INLINE
void set_parameters(dReal themass,
39 const LVecBase3f ¢er,
41 INLINE
void set_sphere(dReal density, dReal radius);
42 INLINE
void set_sphere_total(dReal total_mass, dReal radius);
43 INLINE
void set_capsule(dReal density,
int direction,
44 dReal radius, dReal length);
45 INLINE
void set_capsule_total(dReal total_mass,
int direction,
46 dReal radius, dReal length);
47 INLINE
void set_cylinder(dReal density,
int direction,
48 dReal radius, dReal length);
49 INLINE
void set_cylinder_total(dReal total_mass,
int direction,
50 dReal radius, dReal length);
51 INLINE
void set_box(dReal density,
52 dReal lx, dReal ly, dReal lz);
53 INLINE
void set_box(dReal density,
54 const LVecBase3f &size);
55 INLINE
void set_box_total(dReal total_mass,
56 dReal lx, dReal ly, dReal lz);
57 INLINE
void set_box_total(dReal total_mass,
58 const LVecBase3f &size);
59 INLINE
void adjust(dReal newmass);
60 INLINE
void translate(dReal x, dReal y, dReal z);
61 INLINE
void translate(
const LVecBase3f &pos);
62 INLINE
void rotate(
const LMatrix3f &r);
63 INLINE
void add(
OdeMass &other);
65 INLINE dReal get_magnitude()
const;
66 INLINE LPoint3f get_center()
const;
67 INLINE LMatrix3f get_inertial_tensor()
const;
69 virtual void write(std::ostream &out = std::cout,
unsigned int indent=0)
const;
72 dMass* get_mass_ptr();
75 void operator = (
const OdeMass ©);
82 static void init_type() {
83 TypedReferenceCount::init_type();
85 TypedReferenceCount::get_class_type());
88 return get_class_type();
90 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.