palBox Class Reference

#include <palBodies.h>

Inheritance diagram for palBox:

palBody palBoxBase palBodyBase palBodyBase

List of all members.

Public Member Functions

virtual void Init (Float x, Float y, Float z, Float width, Float height, Float depth, Float mass)


Detailed Description

A box. This class represents a simple box (eg: cube, rectangular prism) at a given position, with a given width, height, depth and mass.
cube.jpg
The diagram shows the central point of the box, as well as the width,height,and depth of the box.

Member Function Documentation

void palBox::Init ( Float  x,
Float  y,
Float  z,
Float  width,
Float  height,
Float  depth,
Float  mass 
) [virtual]

Initializes the box.

Parameters:
x The position (x)
y The position (y)
z The position (z)
width The width of the box
height The height of the box
depth The depth of the box
mass The box's mass
The boxes orientation can be set by employing a SetPosition function.


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1