|
#pragma once
#include <VECTOR>
#include "Situation.h"
class CSimulator;
class CBounceBalls;
class CBounceWall;
class CBall
{
public:
CBall( CSimulator *sim, double radius, double time, osg::Vec3d pos, osg::Vec3d vel );
~CBall(void);
CSimulator *Simulator();
void PredictChanges();
void AddCollider( CBounceBalls *collider );
CSituation situation;
double radius;
typedef std::vector< CBounceBalls * > Colliders;
Colliders colliders;
CBounceWall *bounces[3];
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I develop rail signalling simulation technology at EDM where I use C++ and C#, but also love to dabble in functional programming languages such as Clean and Cat.