Initial commit.
This commit is contained in:
commit
44b5f2392f
98 changed files with 11750 additions and 0 deletions
39
escalator.h
Normal file
39
escalator.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
// -*- C++ -*-
|
||||
|
||||
#ifndef MBOSTOCK_ESCALATOR_H
|
||||
#define MBOSTOCK_ESCALATOR_H
|
||||
|
||||
#include "model.h"
|
||||
#include "physics/shape.h"
|
||||
#include "physics/vector.h"
|
||||
#include "room_object.h"
|
||||
|
||||
namespace mbostock {
|
||||
|
||||
class Material;
|
||||
class ParticleSimulator;
|
||||
|
||||
class Escalator : public DynamicRoomObject {
|
||||
public:
|
||||
Escalator(const Vector& min, const Vector& max, const Vector& v);
|
||||
|
||||
virtual Model& model();
|
||||
virtual const Shape& shape() const;
|
||||
virtual void step(const ParticleSimulator& s);
|
||||
virtual Vector velocity(const Vector& x) const;
|
||||
virtual float slip() const;
|
||||
|
||||
void setMaterial(const Material& m);
|
||||
void setTopMaterial(const Material& m);
|
||||
|
||||
private:
|
||||
const AxisAlignedBox box_;
|
||||
const Vector velocity_;
|
||||
Vector offset_;
|
||||
|
||||
AxisAlignedBoxModel model_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue