palBox Class Reference
#include <palBodies.h>
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.
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:
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palBodies.h
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palBodies.cpp