Panda3D
Public Member Functions | Public Attributes

PhysxCapsuleShapeDesc Class Reference

Descriptor class for PhysxCapsuleShape. More...

#include "physxCapsuleShapeDesc.h"

Inheritance diagram for PhysxCapsuleShapeDesc:
PhysxShapeDesc PhysxEnums ReferenceCount MemoryBase

List of all members.

Public Member Functions

float get_height () const
 The distance between the two hemispherical ends of the capsule.
float get_radius () const
 The radius of the capsule's hemispherical ends and its trunk.
bool is_valid () const
 Returns true if the descriptor is valid.
NxShapeDesc * ptr () const
void set_height (float height)
 Sets the distance between the two hemispherical ends of the capsule.
void set_radius (float radius)
 Sets the radius of the capsule's hemispherical ends and its trunk.
void set_to_default ()
 (re)sets the structure to the default.

Public Attributes

NxCapsuleShapeDesc _desc

Detailed Description

Descriptor class for PhysxCapsuleShape.

Definition at line 27 of file physxCapsuleShapeDesc.h.


Member Function Documentation

float PhysxCapsuleShapeDesc::get_height ( ) const

The distance between the two hemispherical ends of the capsule.

Definition at line 60 of file physxCapsuleShapeDesc.cxx.

float PhysxCapsuleShapeDesc::get_radius ( ) const

The radius of the capsule's hemispherical ends and its trunk.

Definition at line 48 of file physxCapsuleShapeDesc.cxx.

bool PhysxCapsuleShapeDesc::is_valid ( ) const [inline, virtual]

Returns true if the descriptor is valid.

Implements PhysxShapeDesc.

Definition at line 56 of file physxCapsuleShapeDesc.I.

void PhysxCapsuleShapeDesc::set_height ( float  height)

Sets the distance between the two hemispherical ends of the capsule.

Definition at line 36 of file physxCapsuleShapeDesc.cxx.

void PhysxCapsuleShapeDesc::set_radius ( float  radius)

Sets the radius of the capsule's hemispherical ends and its trunk.

Definition at line 24 of file physxCapsuleShapeDesc.cxx.

void PhysxCapsuleShapeDesc::set_to_default ( ) [inline, virtual]

(re)sets the structure to the default.

Implements PhysxShapeDesc.

Definition at line 44 of file physxCapsuleShapeDesc.I.

References PhysxShapeDesc::set_name().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations