PhySphere Class Reference
Inheritance diagram for PhySphere:

Public Member Functions | |
PhySphere (real radius, World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity()) | |
Create a physics sphere object and insert it in the world passed. | |
virtual | ~PhySphere () |
Destroy this object. | |
real | radius () |
return the radius | |
Protected Member Functions | |
void | createPrivateObject () |
Engine encapsulation. |
Detailed Description
PhySphere class.
\
- Motivation
- Represent a physical sphere object.
- Description
- Warnings
- Warnings
Definition at line 37 of file physphere.h.
Constructor & Destructor Documentation
PhySphere | ( | real | radius, |
World * | world, | ||
QString | name = "unamed" , |
||
const wMatrix & | tm = wMatrix::identity() |
||
) |
Create a physics sphere object and insert it in the world passed.
- Parameters:
-
world The World which object will be inserted tm rotation and position at the moment of creation
Definition at line 26 of file physphere.cpp.
References PhyObject::changedMatrix(), PhySphere::createPrivateObject(), and PhySphere::radius().
~PhySphere | ( | ) | [virtual] |
Destroy this object.
Definition at line 34 of file physphere.cpp.
Member Function Documentation
void createPrivateObject | ( | ) | [protected] |
Engine encapsulation.
Reimplemented from PhyObject.
Definition at line 40 of file physphere.cpp.
References wMatrix::identity(), PhyObject::priv, and PhyObject::setMass().
Referenced by PhySphere::PhySphere().
real radius | ( | ) | [inline] |
The documentation for this class was generated from the following files:
- worldsim/include/physphere.h
- worldsim/src/physphere.cpp