Panda3D
Public Member Functions | Static Public Member Functions

PhysxCapsuleForceFieldShape Class Reference

A capsule shaped region used to define a force field. More...

#include "physxCapsuleForceFieldShape.h"

Inheritance diagram for PhysxCapsuleForceFieldShape:
PhysxForceFieldShape PhysxObject PhysxEnums TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
float get_height () const
 Retrieves the height of the capsule.
float get_radius () const
 Retrieves the radius of the capsule.
virtual TypeHandle get_type () const
void link (NxForceFieldShape *shapePtr)
NxForceFieldShape * ptr () const
void save_to_desc (PhysxCapsuleForceFieldShapeDesc &shapeDesc) const
 Saves the state of the shape object to a descriptor.
void set_height (float height)
 Alters the height of the capsule.
void set_radius (float radius)
 Alters the radius of the capsule.
void unlink ()

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Detailed Description

A capsule shaped region used to define a force field.

Definition at line 31 of file physxCapsuleForceFieldShape.h.


Member Function Documentation

float PhysxCapsuleForceFieldShape::get_height ( ) const

Retrieves the height of the capsule.

Definition at line 108 of file physxCapsuleForceFieldShape.cxx.

float PhysxCapsuleForceFieldShape::get_radius ( ) const

Retrieves the radius of the capsule.

Definition at line 96 of file physxCapsuleForceFieldShape.cxx.

static void PhysxCapsuleForceFieldShape::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from PhysxForceFieldShape.

Definition at line 60 of file physxCapsuleForceFieldShape.h.

References PhysxForceFieldShape::init_type().

void PhysxCapsuleForceFieldShape::save_to_desc ( PhysxCapsuleForceFieldShapeDesc shapeDesc) const

Saves the state of the shape object to a descriptor.

Definition at line 60 of file physxCapsuleForceFieldShape.cxx.

void PhysxCapsuleForceFieldShape::set_height ( float  height)

Alters the height of the capsule.

Definition at line 84 of file physxCapsuleForceFieldShape.cxx.

void PhysxCapsuleForceFieldShape::set_radius ( float  radius)

Alters the radius of the capsule.

Definition at line 72 of file physxCapsuleForceFieldShape.cxx.


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