Panda3D

physxJoint.I

00001 // Filename: physxJoint.I
00002 // Created by:  enn0x (02Oct09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //     Function: PhysxJoint::Constructor
00019 //       Access: Protected
00020 //  Description:
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE PhysxJoint::
00023 PhysxJoint() : PhysxObject() {
00024 
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: PhysxJoint::ls
00029 //       Access: Published
00030 //  Description: 
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE void PhysxJoint::
00033 ls() const {
00034 
00035   ls(nout);
00036 }
00037 
00038 ////////////////////////////////////////////////////////////////////
00039 //     Function: PhysxJoint::ls
00040 //       Access: Published
00041 //  Description: 
00042 ////////////////////////////////////////////////////////////////////
00043 INLINE void PhysxJoint::
00044 ls(ostream &out, int indent_level) const {
00045 
00046   indent(out, indent_level) << get_type().get_name()
00047                             << " " << _name
00048                             << " (at 0x" << this << ")";
00049 
00050   NxActor *actorPtr[2];
00051   ptr()->getActors(&actorPtr[0], &actorPtr[1]);
00052 
00053   if (actorPtr[0]) {
00054     out << " A1:0x" << actorPtr[0]->userData;
00055   }
00056 
00057   if (actorPtr[1]) {
00058     out << " A2:0x" << actorPtr[1]->userData;
00059   }
00060 
00061   out << "\n";
00062 }
00063 
 All Classes Functions Variables Enumerations