// Filename: physxCapsuleControllerDesc.cxx // Created by: enn0x (22Sep09) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #include "physxCapsuleControllerDesc.h" //////////////////////////////////////////////////////////////////// // Function: PhysxCapsuleControllerDesc::set_radius // Access: Published // Description: Sets the radius of the capsule's hemispherical // ends and its trunk. //////////////////////////////////////////////////////////////////// void PhysxCapsuleControllerDesc:: set_radius(float radius) { _desc.radius = radius; } //////////////////////////////////////////////////////////////////// // Function: PhysxCapsuleControllerDesc::set_height // Access: Published // Description: Sets the distance between the two hemispherical // ends of the capsule. //////////////////////////////////////////////////////////////////// void PhysxCapsuleControllerDesc:: set_height(float height) { _desc.height = height; } //////////////////////////////////////////////////////////////////// // Function: PhysxCapsuleControllerDesc::get_radius // Access: Published // Description: The radius of the capsule's hemispherical ends // and its trunk. //////////////////////////////////////////////////////////////////// float PhysxCapsuleControllerDesc:: get_radius() const { return _desc.radius; } //////////////////////////////////////////////////////////////////// // Function: PhysxCapsuleControllerDesc::get_height // Access: Published // Description: The distance between the two hemispherical ends // of the capsule. //////////////////////////////////////////////////////////////////// float PhysxCapsuleControllerDesc:: get_height() const { return _desc.height; }