00001 // Filename: physxPlaneShapeDesc.cxx 00002 // Created by: enn0x (08Sep09) 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 #include "physxPlaneShapeDesc.h" 00016 #include "physxManager.h" 00017 00018 //////////////////////////////////////////////////////////////////// 00019 // Function: PhysxPlaneShapeDesc::set_plane 00020 // Access: Published 00021 // Description: Sets the parameters of the plane equation. 00022 // normal: Plane normal. 00023 // d: The distance from the origin. 00024 //////////////////////////////////////////////////////////////////// 00025 void PhysxPlaneShapeDesc:: 00026 set_plane(const LVector3f &normal, float d) { 00027 00028 nassertv(!normal.is_nan()); 00029 00030 _desc.normal = PhysxManager::vec3_to_nxVec3(normal); 00031 _desc.d = d; 00032 } 00033