14#ifndef PHYSXCAPSULESHAPEDESC_H
15#define PHYSXCAPSULESHAPEDESC_H
25class EXPCL_PANDAPHYSX PhysxCapsuleShapeDesc :
public PhysxShapeDesc {
28 INLINE PhysxCapsuleShapeDesc();
29 INLINE ~PhysxCapsuleShapeDesc();
41 NxShapeDesc *ptr()
const {
return (NxShapeDesc *)&_desc; };
42 NxCapsuleShapeDesc _desc;
float get_radius() const
The radius of the capsule's hemispherical ends and its trunk.
void set_to_default()
(re)sets the structure to the default.
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
bool is_valid() const
Returns true if the descriptor is valid.
void set_radius(float radius)
Sets the radius of the capsule's hemispherical ends and its trunk.
float get_height() const
The distance between the two hemispherical ends of the capsule.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.