Panda3D
 All Classes Functions Variables Enumerations
physxCapsuleControllerDesc.cxx
00001 // Filename: physxCapsuleControllerDesc.cxx
00002 // Created by:  enn0x (22Sep09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "physxCapsuleControllerDesc.h"
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //     Function: PhysxCapsuleControllerDesc::set_radius
00019 //       Access: Published
00020 //  Description: Sets the radius of the capsule's hemispherical
00021 //               ends and its trunk.
00022 ////////////////////////////////////////////////////////////////////
00023 void PhysxCapsuleControllerDesc::
00024 set_radius(float radius) {
00025 
00026   _desc.radius = radius;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: PhysxCapsuleControllerDesc::set_height
00031 //       Access: Published
00032 //  Description: Sets the distance between the two hemispherical
00033 //               ends of the capsule.
00034 ////////////////////////////////////////////////////////////////////
00035 void PhysxCapsuleControllerDesc::
00036 set_height(float height) {
00037 
00038   _desc.height = height;
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: PhysxCapsuleControllerDesc::get_radius
00043 //       Access: Published
00044 //  Description: The radius of the capsule's hemispherical ends
00045 //               and its trunk.
00046 ////////////////////////////////////////////////////////////////////
00047 float PhysxCapsuleControllerDesc::
00048 get_radius() const {
00049 
00050   return _desc.radius;
00051 }
00052 
00053 ////////////////////////////////////////////////////////////////////
00054 //     Function: PhysxCapsuleControllerDesc::get_height
00055 //       Access: Published
00056 //  Description: The distance between the two hemispherical ends
00057 //               of the capsule.
00058 ////////////////////////////////////////////////////////////////////
00059 float PhysxCapsuleControllerDesc::
00060 get_height() const {
00061 
00062   return _desc.height;
00063 }
00064 
 All Classes Functions Variables Enumerations