14 #ifndef LINEARCONTROLFORCE_H 15 #define LINEARCONTROLFORCE_H 32 INLINE
void clear_physics_object();
36 INLINE
void set_vector(
const LVector3& v);
37 INLINE
void set_vector(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
39 INLINE LVector3 get_local_vector()
const;
41 virtual void output(std::ostream &out)
const;
42 virtual void write(std::ostream &out,
int indent=0)
const;
55 static void init_type() {
56 LinearForce::init_type();
58 LinearForce::get_class_type());
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
71 #endif // LINEARCONTROLFORCE_H 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.
Simple directed vector force.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.