open_toontown_panda3d/panda/src/physx/physxCapsuleShapeDesc.I

95 lines
2.9 KiB
Plaintext

// Filename: physxCapsuleShapeDesc.I
// Created by: pratt (Apr 7, 2006)
//
////////////////////////////////////////////////////////////////////
//
// 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."
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function : is_valid
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE bool PhysxCapsuleShapeDesc::
is_valid() const {
return nCapsuleShapeDesc.isValid();
}
////////////////////////////////////////////////////////////////////
// Function : set_to_default
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxCapsuleShapeDesc::
set_to_default() {
nCapsuleShapeDesc.setToDefault();
}
////////////////////////////////////////////////////////////////////
// Function : get_flags
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE unsigned int PhysxCapsuleShapeDesc::
get_flags() const {
return nCapsuleShapeDesc.flags;
}
////////////////////////////////////////////////////////////////////
// Function : get_height
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE float PhysxCapsuleShapeDesc::
get_height() const {
return nCapsuleShapeDesc.height;
}
////////////////////////////////////////////////////////////////////
// Function : get_radius
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE float PhysxCapsuleShapeDesc::
get_radius() const {
return nCapsuleShapeDesc.radius;
}
////////////////////////////////////////////////////////////////////
// Function : set_flags
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxCapsuleShapeDesc::
set_flags(unsigned int value) {
nCapsuleShapeDesc.flags = value;
}
////////////////////////////////////////////////////////////////////
// Function : set_height
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxCapsuleShapeDesc::
set_height(float value) {
nCapsuleShapeDesc.height = value;
}
////////////////////////////////////////////////////////////////////
// Function : set_radius
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxCapsuleShapeDesc::
set_radius(float value) {
nCapsuleShapeDesc.radius = value;
}