Panda3D
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 ////////////////////////////////////////////////////////////////////
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 ////////////////////////////////////////////////////////////////////
34 get_radius() const {
35 
36  return _desc.radius;
37 }
38 
void set_radius(float radius)
Radius of shape.
float get_radius() const
Radius of shape.