Panda3D
|
Like a physical node, but with a little more. More...
#include "actorNode.h"
Public Member Functions | |
ActorNode (const string &name="") | |
Constructor. | |
ActorNode (const ActorNode ©) | |
Copy Constructor. | |
virtual | ~ActorNode () |
destructor | |
virtual TypeHandle | force_init_type () |
const LVector3 & | get_contact_vector () const |
PhysicsObject * | get_physics_object () |
virtual TypeHandle | get_type () const |
void | set_contact_vector (const LVector3 &contact_vector) |
void | set_transform_limit (PN_stdfloat limit) |
void | update_transform () |
this sets the transform generated by the contained Physical, moving the node and subsequent geometry. | |
virtual void | write (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Like a physical node, but with a little more.
The actornode assumes responsibility for its own transform, and changes in its own PhysicsObject will be reflected as transforms. This relation goes both ways; changes in the transform will update the object's position (shoves).
Definition at line 30 of file actorNode.h.
ActorNode::ActorNode | ( | const string & | name = "" | ) |
Constructor.
Definition at line 29 of file actorNode.cxx.
References PhysicsObject::set_active(), and LVector3f::zero().
ActorNode::ActorNode | ( | const ActorNode & | copy | ) |
ActorNode::~ActorNode | ( | ) | [virtual] |
destructor
Definition at line 62 of file actorNode.cxx.
void ActorNode::update_transform | ( | ) |
this sets the transform generated by the contained Physical, moving the node and subsequent geometry.
i.e. copy from PhysicsObject to PandaNode
Definition at line 73 of file actorNode.cxx.
References PhysicsObject::get_lcs(), and PandaNode::set_transform().
Referenced by PhysicsManager::do_physics().
void ActorNode::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from PhysicalNode.
Definition at line 141 of file actorNode.cxx.
References PhysicsObject::write().