14#ifndef PHYSXCAPSULECONTROLLERDESC_H
15#define PHYSXCAPSULECONTROLLERDESC_H
25class EXPCL_PANDAPHYSX PhysxCapsuleControllerDesc :
public PhysxControllerDesc {
28 INLINE PhysxCapsuleControllerDesc();
29 INLINE ~PhysxCapsuleControllerDesc();
41 NxControllerDesc *ptr()
const {
return (NxControllerDesc *)&_desc; };
42 NxCapsuleControllerDesc _desc;
float get_radius() const
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.
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.
void set_height(float height)
Sets the distance between the two hemispherical ends of the capsule.
void set_to_default()
(re)sets the structure to the default.
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.