Panda3D
Public Member Functions | Static Public Member Functions

PhysxHeightFieldShape Class Reference

This class is a shape instance of a height field object of type PhysxHeightField. More...

#include "physxHeightFieldShape.h"

Inheritance diagram for PhysxHeightFieldShape:
PhysxShape PhysxObject PhysxEnums TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
void link (NxShape *shapePtr)
NxShape * ptr () const
void save_to_desc (PhysxHeightFieldShapeDesc &shapeDesc) const
 Saves the state of the shape object to a descriptor.
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

This class is a shape instance of a height field object of type PhysxHeightField.

Each shape is owned by an actor that it is attached to.

An instance can be created by calling the createShape() method of the PhysxActor object that should own it, with a PhysxHeightFieldShapeDesc object as the parameter, or by adding the shape descriptor into the PhysxActorDesc class before creating the actor.

The shape is deleted by calling release() on the shape itself.

Definition at line 41 of file physxHeightFieldShape.h.


Member Function Documentation

static void PhysxHeightFieldShape::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 PhysxShape.

Definition at line 63 of file physxHeightFieldShape.h.

References PhysxShape::init_type().

void PhysxHeightFieldShape::save_to_desc ( PhysxHeightFieldShapeDesc shapeDesc) const

Saves the state of the shape object to a descriptor.

Definition at line 60 of file physxHeightFieldShape.cxx.


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