Panda3D
physxCapsuleShapeDesc.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 physxCapsuleShapeDesc.cxx
10  * @author enn0x
11  * @date 2009-09-11
12  */
13 
14 #include "physxCapsuleShapeDesc.h"
15 
16 /**
17  * Sets the radius of the capsule's hemispherical ends and its trunk.
18  */
20 set_radius(float radius) {
21 
22  _desc.radius = radius;
23 }
24 
25 /**
26  * Sets the distance between the two hemispherical ends of the capsule.
27  */
29 set_height(float height) {
30 
31  _desc.height = height;
32 }
33 
34 /**
35  * The radius of the capsule's hemispherical ends and its trunk.
36  */
38 get_radius() const {
39 
40  return _desc.radius;
41 }
42 
43 /**
44  * The distance between the two hemispherical ends of the capsule.
45  */
47 get_height() const {
48 
49  return _desc.height;
50 }
void set_radius(float radius)
Sets the radius of the capsule's hemispherical ends and its trunk.
float get_height() const
The distance between the two hemispherical ends of the capsule.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
float get_radius() const
The radius of the capsule's hemispherical ends and its trunk.