Panda3D
Public Member Functions | Static Public Member Functions
ActorNode Class Reference

Like a physical node, but with a little more. More...

#include "actorNode.h"

Inheritance diagram for ActorNode:
PhysicalNode PandaNode TypedWritable Namable LinkedListNode ReferenceCount TypedObject MemoryBase MemoryBase MemoryBase

List of all members.

Public Member Functions

 ActorNode (const string &name="")
 Constructor.
 ActorNode (const ActorNode &copy)
 Copy Constructor.
virtual ~ActorNode ()
 destructor
virtual TypeHandle force_init_type ()
const LVector3get_contact_vector () const
PhysicsObjectget_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 ()

Detailed Description

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.


Constructor & Destructor Documentation

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)

Copy Constructor.

Definition at line 48 of file actorNode.cxx.

References LVector3f::zero().

ActorNode::~ActorNode ( ) [virtual]

destructor

Definition at line 62 of file actorNode.cxx.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations