Panda3D

Loading...
Searching...
No Matches
physxCapsuleForceFieldShapeDesc.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 physxCapsuleForceFieldShapeDesc.cxx
10 * @author enn0x
11 * @date 2009-11-06
12 */
13
14#include "physxCapsuleForceFieldShapeDesc.h"
15
16/**
17 * Sets the radius of the capsule's hemispherical ends and its trunk.
18 */
19 void PhysxCapsuleForceFieldShapeDesc::
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 PhysxCapsuleForceFieldShapeDesc::
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 PhysxCapsuleForceFieldShapeDesc::
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 PhysxCapsuleForceFieldShapeDesc::
47 get_height() const {
48
49 return _desc.height;
50}
PhysxCapsuleForceFieldShapeDesc::get_radius
float get_radius() const
The radius of the capsule's hemispherical ends and its trunk.
Definition physxCapsuleForceFieldShapeDesc.cxx:38
PhysxCapsuleForceFieldShapeDesc::set_height
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
Definition physxCapsuleForceFieldShapeDesc.cxx:29
PhysxCapsuleForceFieldShapeDesc::get_height
float get_height() const
The distance between the two hemispherical ends of the capsule.
Definition physxCapsuleForceFieldShapeDesc.cxx:47
PhysxCapsuleForceFieldShapeDesc::set_radius
void set_radius(float radius)
Sets the radius of the capsule's hemispherical ends and its trunk.
Definition physxCapsuleForceFieldShapeDesc.cxx:20
physxCapsuleForceFieldShapeDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.