// Filename: physxShapeDesc.cxx // Created by: pratt (Apr 7, 2006) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #ifdef HAVE_PHYSX #include "physxShapeDesc.h" #include "luse.h" //////////////////////////////////////////////////////////////////// // Function : PhysxShapeDesc // Access : protected // Description : //////////////////////////////////////////////////////////////////// PhysxShapeDesc:: PhysxShapeDesc(NxShapeDesc *subShapeDesc) { nShapeDesc = subShapeDesc; } //////////////////////////////////////////////////////////////////// // Function : ~PhysxShapeDesc // Access : Published // Description : //////////////////////////////////////////////////////////////////// PhysxShapeDesc:: ~PhysxShapeDesc() { } //////////////////////////////////////////////////////////////////// // Function : get_group // Access : Published // Description : //////////////////////////////////////////////////////////////////// unsigned short PhysxShapeDesc:: get_group() const { return nShapeDesc->group; } //////////////////////////////////////////////////////////////////// // Function : get_local_pose // Access : Published // Description : //////////////////////////////////////////////////////////////////// LMatrix4f PhysxShapeDesc:: get_local_pose() const { return PhysxManager::nxMat34_to_lMatrix4(nShapeDesc->localPose); } //////////////////////////////////////////////////////////////////// // Function : get_material_index // Access : Published // Description : //////////////////////////////////////////////////////////////////// unsigned short PhysxShapeDesc:: get_material_index() const { return nShapeDesc->materialIndex; } //////////////////////////////////////////////////////////////////// // Function : set_group // Access : Published // Description : //////////////////////////////////////////////////////////////////// void PhysxShapeDesc:: set_group(unsigned short value) { nShapeDesc->group = value; } //////////////////////////////////////////////////////////////////// // Function : set_local_pose // Access : Published // Description : //////////////////////////////////////////////////////////////////// void PhysxShapeDesc:: set_local_pose(LMatrix4f value) { nShapeDesc->localPose = PhysxManager::lMatrix4_to_nxMat34(value); } //////////////////////////////////////////////////////////////////// // Function : set_material_index // Access : Published // Description : //////////////////////////////////////////////////////////////////// void PhysxShapeDesc:: set_material_index(unsigned short value) { nShapeDesc->materialIndex = value; } #endif // HAVE_PHYSX