27   INLINE 
void set_amplitude(
const PN_stdfloat a);
    28   INLINE 
void set_mass_dependent(
bool m);
    30   INLINE PN_stdfloat get_amplitude() 
const;
    31   INLINE 
bool get_mass_dependent() 
const;
    33   INLINE 
void set_vector_masks(
bool x, 
bool y, 
bool z);
    34   INLINE LVector3 get_vector_masks();
    40   virtual bool is_linear() 
const;
    42   virtual void output(std::ostream &out) 
const;
    43   virtual void write(std::ostream &out, 
int indent=0) 
const;
    50   PN_stdfloat _amplitude;
    57   virtual LVector3 get_child_vector(
const PhysicsObject *po) = 0;
    63   static void init_type() {
    64     BaseForce::init_type();
    66                   BaseForce::get_class_type());
    69     return get_class_type();
    71   virtual TypeHandle force_init_type() {init_type(); 
return get_class_type();}
    79 #endif // BASELINEARFORCE_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
 
A body on which physics will be applied.
 
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
 
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(std::ostream &out, int indent_level=0) const
Write a string representation of this instance to <out>.
 
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
 
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
 
TypeHandle is the identifier used to differentiate C++ class types.
 
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.