Panda3D
|
00001 // Filename: jointVertexTransform.I 00002 // Created by: drose (24Mar05) 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 // Function: JointVertexTransform::get_joint 00018 // Access: Published 00019 // Description: Returns the joint for which this object returns the 00020 // transform. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE const CharacterJoint *JointVertexTransform:: 00023 get_joint() const { 00024 return _joint; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: JointVertexTransform::check_matrix 00029 // Access: Private 00030 // Description: Recomputes _matrix if it needs it. 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE void JointVertexTransform:: 00033 check_matrix() const { 00034 if (_matrix_stale) { 00035 ((JointVertexTransform *)this)->compute_matrix(); 00036 } 00037 }