Panda3D
physxPlaneShapeDesc.cxx
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 physxPlaneShapeDesc.cxx
10  * @author enn0x
11  * @date 2009-09-08
12  */
13 
14 #include "physxPlaneShapeDesc.h"
15 #include "physxManager.h"
16 
17 /**
18  * Sets the parameters of the plane equation. normal: Plane normal. d: The
19  * distance from the origin.
20  */
22 set_plane(const LVector3f &normal, float d) {
23 
24  nassertv(!normal.is_nan());
25 
26  _desc.normal = PhysxManager::vec3_to_nxVec3(normal);
27  _desc.d = d;
28 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
Definition: physxManager.I:27
void set_plane(const LVector3f &normal, float d)
Sets the parameters of the plane equation.