28 explicit ActorNode(
const std::string &name =
"");
34 void set_contact_vector(
const LVector3 &contact_vector);
35 const LVector3 &get_contact_vector()
const;
39 void update_transform();
41 void set_transform_limit(PN_stdfloat limit) { _transform_limit = limit; };
42 virtual void write(std::ostream &out,
int indent=0)
const;
46 LVector3 _contact_vector;
48 PN_stdfloat _transform_limit;
52 virtual void transform_changed();
59 static void init_type() {
60 PhysicalNode::init_type();
62 PhysicalNode::get_class_type());
65 return get_class_type();
67 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
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.
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>.
Graph node that encapsulated a series of physical objects.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Like a physical node, but with a little more.