Panda3D
|
00001 // Filename: physxActor.I 00002 // Created by: enn0x (14Sep09) 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: PhysxActor::Constructor 00019 // Access: Published 00020 // Description: 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE PhysxActor:: 00023 PhysxActor() : PhysxObject() { 00024 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: PhysxActor::Destructor 00029 // Access: Published 00030 // Description: 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE PhysxActor:: 00033 ~PhysxActor() { 00034 00035 } 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: PhysxActor::ls 00039 // Access: Published 00040 // Description: 00041 //////////////////////////////////////////////////////////////////// 00042 INLINE void PhysxActor:: 00043 ls() const { 00044 00045 ls(nout); 00046 } 00047 00048 //////////////////////////////////////////////////////////////////// 00049 // Function: PhysxActor::ls 00050 // Access: Published 00051 // Description: 00052 //////////////////////////////////////////////////////////////////// 00053 INLINE void PhysxActor:: 00054 ls(ostream &out, int indent_level) const { 00055 00056 indent(out, indent_level) << get_type().get_name() 00057 << " " << _name 00058 << " (at 0x" << this << ")"; 00059 00060 if (!_np.is_empty()) { 00061 out << " NP:" << _np; 00062 } 00063 00064 if (_controller) { 00065 out << " C:0x" << _controller; 00066 } 00067 00068 out << "\n"; 00069 00070 _shapes.ls(out, indent_level); 00071 } 00072