29class EXPCL_PANDA_PHYSICS BaseForce :
public TypedReferenceCount {
33 INLINE
bool get_active()
const;
34 INLINE
void set_active(
bool active);
35 virtual bool is_linear()
const = 0;
37 INLINE ForceNode *get_force_node()
const;
38 INLINE
NodePath get_force_node_path()
const;
40 virtual void output(std::ostream &out)
const;
41 virtual void write(std::ostream &out,
int indent_level=0)
const;
44 BaseForce(
bool active =
true);
45 BaseForce(
const BaseForce ©);
48 ForceNode *_force_node;
56 static void init_type() {
57 TypedReferenceCount::init_type();
59 TypedReferenceCount::get_class_type());
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 friend class ForceNode;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent_level=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>.
A force that lives in the scene graph and is therefore subject to local coordinate systems.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.