#include <CollisionSphere.h>
Inheritance diagram for ParticleSystems::CollisionSphere:
Public Member Functions | |
CollisionSphere (GraphicsLib::Point3 *c1, GraphicsLib::Real radius) | |
The Constructor. | |
virtual | ~CollisionSphere () |
The Destructor. | |
virtual void | collide (Particle *p) |
A virtual function. | |
virtual void | draw () |
A virtual function. | |
virtual void | translate () |
A virtual function. | |
virtual void | rotate () |
A virtual function. | |
virtual void | scale () |
A virtual function. | |
Public Attributes | |
GraphicsLib::Real | radius |
A public variable. | |
GraphicsLib::Point3 | position |
A public variable. |
A class to create a sphere which can be used to make Particles collide against. This Class extends the CollisionObject
Definition at line 37 of file CollisionSphere.h.
|
The Constructor. Constructs a new CollisionSphere at the given point with the given radius.
Definition at line 12 of file CollisionSphere.cpp. |
|
The Destructor. Destructs the CollisionSphere Definition at line 17 of file CollisionSphere.cpp. |
|
A virtual function. Checks if a collision occured between the passed Particle and this CollisionSphere
Implements ParticleSystems::CollisionObject. Definition at line 21 of file CollisionSphere.cpp. |
|
A virtual function. Draws this CollisionSphere Implements ParticleSystems::CollisionObject. Definition at line 48 of file CollisionSphere.cpp. |
|
A virtual function. Translates this CollisionSphere Implements ParticleSystems::CollisionObject. Definition at line 62 of file CollisionSphere.cpp. |
|
A virtual function. Translates this CollisionSphere Implements ParticleSystems::CollisionObject. Definition at line 65 of file CollisionSphere.cpp. |
|
A virtual function. Translates this CollisionSphere Implements ParticleSystems::CollisionObject. Definition at line 59 of file CollisionSphere.cpp. |
|
A public variable. The position of this CollisionSphere Definition at line 96 of file CollisionSphere.h. Referenced by collide(), CollisionSphere(), and draw(). |
|
A public variable. The radius of this CollisionSphere Definition at line 90 of file CollisionSphere.h. Referenced by collide(), CollisionSphere(), and draw(). |