PhyCylinder Class Reference

PhyCylinder class. More...

Inheritance diagram for PhyCylinder:

List of all members.

Public Member Functions

 PhyCylinder (real radius, real height, World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity())
 Create a physics cylinder object and insert it in the world passed.
virtual ~PhyCylinder ()
 Destroy this object.
real height ()
 return the height
real radius ()
 return the radius

Protected Member Functions

void createPrivateObject ()
 Engine encapsulation.

Detailed Description

PhyCylinder class.

\

Motivation
Represent a physical cylinder object.
Description
Warnings
Warnings

Definition at line 37 of file phycylinder.h.


Constructor & Destructor Documentation

PhyCylinder ( real  radius,
real  height,
World world,
QString  name = "unamed",
const wMatrix tm = wMatrix::identity() 
)

Create a physics cylinder object and insert it in the world passed.

Parameters:
radiusradius of cylinder
heightthe height of cylinder (cylinder 'grows up' along its local X axis)
worldThe World which object will be inserted
tmrotation and position at the moment of creation

Definition at line 26 of file phycylinder.cpp.

References PhyObject::changedMatrix(), PhyCylinder::createPrivateObject(), PhyCylinder::height(), and PhyCylinder::radius().

~PhyCylinder ( ) [virtual]

Destroy this object.

Definition at line 35 of file phycylinder.cpp.


Member Function Documentation

void createPrivateObject ( ) [protected]

Engine encapsulation.

Reimplemented from PhyObject.

Definition at line 41 of file phycylinder.cpp.

References wMatrix::identity(), PhyObject::priv, and PhyObject::setMass().

Referenced by PhyCylinder::PhyCylinder().

real height ( ) [inline]

return the height

Definition at line 54 of file phycylinder.h.

Referenced by PhyCylinder::PhyCylinder().

real radius ( ) [inline]

return the radius

Definition at line 50 of file phycylinder.h.

Referenced by PhyCylinder::PhyCylinder(), and PhyiCub::PhyiCub().


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