Panda3D
Loading...
Searching...
No Matches
physxJoint.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxJoint.I
10 * @author enn0x
11 * @date 2009-10-02
12 */
13
14/**
15 *
16 */
17INLINE PhysxJoint::
18PhysxJoint() : PhysxObject() {
19
20}
21
22/**
23 *
24 */
25INLINE void PhysxJoint::
26ls() const {
27
28 ls(nout);
29}
30
31/**
32 *
33 */
34INLINE void PhysxJoint::
35ls(std::ostream &out, int indent_level) const {
36
37 indent(out, indent_level) << get_type().get_name()
38 << " " << _name
39 << " (at 0x" << this << ")";
40
41 NxActor *actorPtr[2];
42 ptr()->getActors(&actorPtr[0], &actorPtr[1]);
43
44 if (actorPtr[0]) {
45 out << " A1:0x" << actorPtr[0]->userData;
46 }
47
48 if (actorPtr[1]) {
49 out << " A2:0x" << actorPtr[1]->userData;
50 }
51
52 out << "\n";
53}
get_name
Returns the name of the type.
Definition typeHandle.h:136
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20