Panda3D

Loading...
Searching...
No Matches
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 */
21 void PhysxPlaneShapeDesc::
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}
PhysxManager::vec3_to_nxVec3
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
Definition physxManager.I:27
PhysxPlaneShapeDesc::set_plane
void set_plane(const LVector3f &normal, float d)
Sets the parameters of the plane equation.
Definition physxPlaneShapeDesc.cxx:22
physxManager.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxPlaneShapeDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.