15 #ifndef LINEARVECTORFORCE_H 16 #define LINEARVECTORFORCE_H 18 #include "linearForce.h" 29 LinearVectorForce(PN_stdfloat x = 0.0f, PN_stdfloat y = 0.0f, PN_stdfloat z = 0.0f,
30 PN_stdfloat a = 1.0f,
bool mass =
false);
33 INLINE
void set_vector(
const LVector3& v);
34 INLINE
void set_vector(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
36 INLINE
LVector3 get_local_vector()
const;
38 virtual void output(ostream &out)
const;
39 virtual void write(ostream &out,
unsigned int indent=0)
const;
54 static void init_type() {
55 LinearForce::init_type();
56 register_type(_type_handle,
"LinearVectorForce",
57 LinearForce::get_class_type());
60 return get_class_type();
62 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
68 #include "linearVectorForce.I" 70 #endif // LINEARVECTORFORCE_H Simple directed vector force.
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.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.