7 #ifndef __tire_TireRig_h__ 8 #define __tire_TireRig_h__ 20 class TireRigForce :
public SemiImplicit::Force,
21 public CastableAs<TireRigForce>
24 TireRigForce(sp<SemiImplicit> a_integrator) {}
25 virtual ~TireRigForce(
void) {}
27 void bind(SemiImplicit::Particle *a_particle)
29 m_particle = a_particle;
32 virtual void accumulate(
void)
34 m_particle->m_force[0] += (t_solve_real)(m_force[0]);
35 m_particle->m_force[1] += (t_solve_real)(m_force[1]);
36 m_particle->m_force[2] += (t_solve_real)(m_force[2]);
39 void set(
const t_moa_v3 &a_force)
43 void add(
const t_moa_v3 &a_force)
47 t_solve_v3 location(
void)
49 return m_particle->m_location;
51 t_solve_v3 velocity(
void)
53 return m_particle->m_velocity;
57 SemiImplicit::Particle *m_particle;
71 void initialize(
void) {}
72 virtual void compile(
const t_note_id &a_note_id);
73 void step(t_moa_real a_dt);
80 SemiImplicit::Particle *m_particle;
81 void makeWishbone(
RigSystem &a_system, t_moa_real a_stiffness,
82 t_moa_real a_damping, t_moa_real a_load);
84 std::vector< sp<TireRigForce> > m_spTireForces;
85 std::vector<Record> m_forceParticles;
90 std::vector<Rig> m_rigs;
Tire Test Rig Live.
Definition: tireAS.h:206
kernel
Definition: namespace.dox:3
Time Stepping System.
Definition: Stepper.h:15
Tire Test Rig System.
Definition: TireRig.h:63
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Non-persistent reference to an instance of a Layout.
Definition: WeakRecordSB.h:17