Panda3D
Loading...
Searching...
No Matches
physxCcdSkeletonDesc.I
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 physxCcdSkeletonDesc.I
10 * @author enn0x
11 * @date 2012-05-01
12 */
13
14/**
15 *
16 */
17INLINE PhysxCcdSkeletonDesc::
18PhysxCcdSkeletonDesc() {
19
20 _desc.flags = 0;
21 _desc.pointStrideBytes = sizeof(NxVec3);
22 _desc.triangleStrideBytes = 3*sizeof(NxU32);
23 _desc.points = nullptr;
24 _desc.triangles = nullptr;
25
26 _vertices = nullptr;
27 _triangles = nullptr;
28}
29
30/**
31 *
32 */
33INLINE PhysxCcdSkeletonDesc::
34~PhysxCcdSkeletonDesc() {
35
36 if (_vertices) {
37 delete [] _vertices;
38 }
39
40 if (_triangles) {
41 delete [] _triangles;
42 }
43}
44
45/**
46 * Returns true if the descriptor is valid.
47 */
49is_valid() const {
50
51 return _desc.isValid();
52}
bool is_valid() const
Returns true if the descriptor is valid.