14 #ifndef LINEARVECTORFORCE_H 15 #define LINEARVECTORFORCE_H 25 explicit LinearVectorForce(
const LVector3& vec, PN_stdfloat a = 1.0f,
bool mass =
false);
26 explicit LinearVectorForce(PN_stdfloat x = 0.0f, PN_stdfloat y = 0.0f, PN_stdfloat z = 0.0f,
27 PN_stdfloat a = 1.0f,
bool mass =
false);
31 INLINE
void set_vector(
const LVector3& v);
32 INLINE
void set_vector(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
34 INLINE LVector3 get_local_vector()
const;
36 virtual void output(std::ostream &out)
const;
37 virtual void write(std::ostream &out,
int indent=0)
const;
52 static void init_type() {
53 LinearForce::init_type();
55 LinearForce::get_class_type());
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
68 #endif // LINEARVECTORFORCE_H Simple directed vector force.
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A force that acts on a PhysicsObject by way of an Integrator.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
TypeHandle is the identifier used to differentiate C++ class types.