15 #ifndef LINEARDISTANCEFORCE_H
16 #define LINEARDISTANCEFORCE_H
18 #include "linearForce.h"
30 FT_ONE_OVER_R_SQUARED,
34 INLINE
void set_radius(PN_stdfloat r);
35 INLINE
void set_falloff_type(FalloffType ft);
36 INLINE
void set_force_center(
const LPoint3& p);
38 INLINE PN_stdfloat get_radius()
const;
39 INLINE FalloffType get_falloff_type()
const;
40 INLINE
LPoint3 get_force_center()
const;
42 INLINE PN_stdfloat get_scalar_term()
const;
44 virtual void output(ostream &out)
const;
45 virtual void write(ostream &out,
unsigned int indent=0)
const;
66 static void init_type() {
67 LinearForce::init_type();
68 register_type(_type_handle,
"LinearDistanceForce",
69 LinearForce::get_class_type());
72 return get_class_type();
74 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
80 #include "linearDistanceForce.I"
82 #endif // LINEARDISTANCEFORCE_H
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
A body on which physics will be applied.
Pure virtual class for sinks and sources.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
A force that acts on a PhysicsObject by way of an Integrator.
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.