18 #include "baseForce.h"
29 INLINE
void set_amplitude(
const PN_stdfloat a);
30 INLINE
void set_mass_dependent(
bool m);
32 INLINE PN_stdfloat get_amplitude()
const;
33 INLINE
bool get_mass_dependent()
const;
35 INLINE
void set_vector_masks(
bool x,
bool y,
bool z);
42 virtual bool is_linear()
const;
44 virtual void output(ostream &out)
const;
45 virtual void write(ostream &out,
unsigned int indent=0)
const;
52 PN_stdfloat _amplitude;
65 static void init_type() {
66 BaseForce::init_type();
67 register_type(_type_handle,
"LinearForce",
68 BaseForce::get_class_type());
71 return get_class_type();
73 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
79 #include "linearForce.I"
81 #endif // BASELINEARFORCE_H
A body on which physics will be applied.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
A force that acts on a PhysicsObject by way of an Integrator.
pure virtual base class for all forces that could POSSIBLY exist.
virtual void write(ostream &out, int indent_level=0) const
Write a string representation of this instance to <out>.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
TypeHandle is the identifier used to differentiate C++ class types.