Panda3D
 All Classes Functions Variables Enumerations
physxJoint.I
1 // Filename: physxJoint.I
2 // Created by: enn0x (02Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: PhysxJoint::Constructor
19 // Access: Protected
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 INLINE PhysxJoint::
23 PhysxJoint() : PhysxObject() {
24 
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: PhysxJoint::ls
29 // Access: Published
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 INLINE void PhysxJoint::
33 ls() const {
34 
35  ls(nout);
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: PhysxJoint::ls
40 // Access: Published
41 // Description:
42 ////////////////////////////////////////////////////////////////////
43 INLINE void PhysxJoint::
44 ls(ostream &out, int indent_level) const {
45 
46  indent(out, indent_level) << get_type().get_name()
47  << " " << _name
48  << " (at 0x" << this << ")";
49 
50  NxActor *actorPtr[2];
51  ptr()->getActors(&actorPtr[0], &actorPtr[1]);
52 
53  if (actorPtr[0]) {
54  out << " A1:0x" << actorPtr[0]->userData;
55  }
56 
57  if (actorPtr[1]) {
58  out << " A2:0x" << actorPtr[1]->userData;
59  }
60 
61  out << "\n";
62 }
63 
string get_name(TypedObject *object=(TypedObject *) NULL) const
Returns the name of the type.
Definition: typeHandle.I:132