Panda3D
panda
src
physx
physxCapsuleControllerDesc.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 physxCapsuleControllerDesc.cxx
10
* @author enn0x
11
* @date 2009-09-22
12
*/
13
14
#include "
physxCapsuleControllerDesc.h
"
15
16
/**
17
* Sets the radius of the capsule's hemispherical ends and its trunk.
18
*/
19
void
PhysxCapsuleControllerDesc::
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
PhysxCapsuleControllerDesc::
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
PhysxCapsuleControllerDesc::
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
PhysxCapsuleControllerDesc::
47
get_height
()
const
{
48
49
return
_desc.height;
50
}
PhysxCapsuleControllerDesc::set_radius
void set_radius(float radius)
Sets the radius of the capsule's hemispherical ends and its trunk.
Definition:
physxCapsuleControllerDesc.cxx:20
PhysxCapsuleControllerDesc::get_radius
float get_radius() const
The radius of the capsule's hemispherical ends and its trunk.
Definition:
physxCapsuleControllerDesc.cxx:38
PhysxCapsuleControllerDesc::get_height
float get_height() const
The distance between the two hemispherical ends of the capsule.
Definition:
physxCapsuleControllerDesc.cxx:47
PhysxCapsuleControllerDesc::set_height
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
Definition:
physxCapsuleControllerDesc.cxx:29
physxCapsuleControllerDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:04 for Panda3D by
1.8.20