Panda3D
panda
src
physx
physxSphereShapeDesc.cxx
1
// Filename: physxSphereShapeDesc.cxx
2
// Created by: enn0x (11Sep09)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "physxSphereShapeDesc.h"
16
17
////////////////////////////////////////////////////////////////////
18
// Function: PhysxSphereShapeDesc::set_radius
19
// Access: Published
20
// Description: Radius of shape. Must be positive.
21
////////////////////////////////////////////////////////////////////
22
void
PhysxSphereShapeDesc::
23
set_radius
(
float
radius) {
24
25
_desc.radius = radius;
26
}
27
28
////////////////////////////////////////////////////////////////////
29
// Function: PhysxSphereShapeDesc::get_radius
30
// Access: Published
31
// Description: Radius of shape.
32
////////////////////////////////////////////////////////////////////
33
float
PhysxSphereShapeDesc::
34
get_radius
()
const
{
35
36
return
_desc.radius;
37
}
38
PhysxSphereShapeDesc::set_radius
void set_radius(float radius)
Radius of shape.
Definition:
physxSphereShapeDesc.cxx:23
PhysxSphereShapeDesc::get_radius
float get_radius() const
Radius of shape.
Definition:
physxSphereShapeDesc.cxx:34
Generated on Wed May 17 2017 23:46:05 for Panda3D by
1.8.13