~llaniewski/esys-particle/remote-force

« back to all changes in this revision

Viewing changes to Model/RotParticle.h

Merge JonMcC

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    {
67
67
      m_is_dynamic=true;
68
68
      m_is_rot=true;
 
69
      m_is_acc=true;
69
70
    }
70
71
 
71
72
    exchangeType(
75
76
      const Vec3 &currAngVel,
76
77
      const Quaternion &quat,
77
78
      const bool is_dyn,
78
 
      const bool is_rot
 
79
      const bool is_rot,
 
80
      const bool is_acc
79
81
    )
80
82
      : m_pos(pos),
81
83
        m_initPos(initPos),
85
87
    {
86
88
      m_is_dynamic=is_dyn;
87
89
      m_is_rot=is_rot;
 
90
      m_is_acc=is_acc;
88
91
    }
89
92
  public:
90
93
    Vec3       m_pos;
94
97
    Quaternion m_quat;
95
98
    bool m_is_dynamic;
96
99
    bool m_is_rot;
 
100
    bool m_is_acc;
97
101
 
98
102
    friend class TML_PackedMessageInterface;    
99
103
  };
124
128
    const Vec3& force,
125
129
    int         id,
126
130
    bool is_dyn,
127
 
    bool is_rot
 
131
    bool is_rot,
 
132
    bool is_acc
128
133
  );
129
134
  CRotParticle(
130
135
    double      rad,
138
143
    const Vec3& moment,
139
144
    const Vec3& angvel, 
140
145
    bool is_dyn, 
141
 
    bool is_rot
 
146
    bool is_rot,
 
147
    bool is_acc
142
148
  );
143
149
  CRotParticle(
144
150
    double            rad,
155
161
    const Vec3&       moment,
156
162
    const Vec3&       angvel,  
157
163
    bool is_dyn,
158
 
    bool is_rot
 
164
    bool is_rot,
 
165
    bool is_acc
159
166
  );
160
167
  
161
168
  virtual ~CRotParticle(){};
200
207
  virtual void setNonDynamic() {m_is_dynamic=false;m_is_rot=false;};
201
208
  virtual void setNonDynamicLinear() {m_is_dynamic=false;};
202
209
  virtual void setNonDynamicRot() {m_is_rot=false;};
 
210
  virtual void setNonDynamicAcc() {m_is_dynamic=true; m_is_acc=false;};
203
211
 
204
212
  inline Quaternion getQuatFromRotVec(const Vec3 &vec) const
205
213
  {