Panda3D
panda
src
physx
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
*/
19
void
PhysxCapsuleShapeDesc::
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
*/
28
void
PhysxCapsuleShapeDesc::
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
*/
37
float
PhysxCapsuleShapeDesc::
38
get_radius
()
const
{
39
40
return
_desc.radius;
41
}
42
43
/**
44
* The distance between the two hemispherical ends of the capsule.
45
*/
46
float
PhysxCapsuleShapeDesc::
47
get_height
()
const
{
48
49
return
_desc.height;
50
}
PhysxCapsuleShapeDesc::get_height
float get_height() const
The distance between the two hemispherical ends of the capsule.
Definition:
physxCapsuleShapeDesc.cxx:47
PhysxCapsuleShapeDesc::set_radius
void set_radius(float radius)
Sets the radius of the capsule's hemispherical ends and its trunk.
Definition:
physxCapsuleShapeDesc.cxx:20
PhysxCapsuleShapeDesc::set_height
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
Definition:
physxCapsuleShapeDesc.cxx:29
PhysxCapsuleShapeDesc::get_radius
float get_radius() const
The radius of the capsule's hemispherical ends and its trunk.
Definition:
physxCapsuleShapeDesc.cxx:38
physxCapsuleShapeDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sat Jan 11 2020 15:15:28 for Panda3D by
1.8.17