void zeroForce()
Definition: SphereBody.h:61
void moveTo(const Vec3 &v)
Definition: SphereBody.h:54
Vec3 getVel()
Definition: SphereBody.h:56
void moveBy(const Vec3 &v)
Definition: SphereBody.h:53
void resetDisplacement()
Definition: SphereBody.h:68
const Vec3 & getPos()
Definition: SphereBody.h:63
void setVel(const Vec3 &v)
Definition: SphereBody.h:55
Vec3 getTotalDisplacement()
Definition: SphereBody.h:67
ostream & operator<<(ostream &ost, const CSphereBody &w)
Definition: SphereBody.cpp:67
const double & getRadius() const
Definition: SphereBody.h:59
void addForce(const Vec3 &force)
Definition: SphereBody.h:60
base class for spherical non-inertial bodies (similar to simple walls)
Definition: SphereBody.h:40
const Vec3 & getCentre() const
Definition: SphereBody.h:58
Vec3 m_centre
Definition: SphereBody.h:42
double getDisplacement()
Definition: SphereBody.h:66
Vec3 m_vel
Definition: SphereBody.h:46
virtual ~CSphereBody()
Definition: SphereBody.h:51
virtual void writeCheckPoint(ostream &, const string &) const
Definition: SphereBody.cpp:50
double m_radius
Definition: SphereBody.h:43
friend ostream & operator<<(ostream &, const CSphereBody &)
Definition: SphereBody.cpp:67
Vec3 m_force
Definition: SphereBody.h:44
CSphereBody()
Definition: SphereBody.cpp:20
virtual void loadCheckPoint(istream &)
Definition: SphereBody.cpp:60
Vec3 m_oldpos
Definition: SphereBody.h:45
const Vec3 & getForce()
Definition: SphereBody.h:62