35 b2_pbdStretchingModel,
36 b2_xpbdStretchingModel
41 b2_springAngleBendingModel = 0,
42 b2_pbdAngleBendingModel,
43 b2_xpbdAngleBendingModel,
44 b2_pbdDistanceBendingModel,
45 b2_pbdHeightBendingModel,
46 b2_pbdTriangleBendingModel
54 stretchingModel = b2_pbdStretchingModel;
55 bendingModel = b2_pbdAngleBendingModel;
57 stretchStiffness = 1.0f;
59 stretchDamping = 0.0f;
64 fixedEffectiveMass =
false;
68 b2StretchingModel stretchingModel;
69 b2BendingModel bendingModel;
71 float stretchStiffness;
78 bool fixedEffectiveMass;
116 void Step(
float timeStep, int32 iterations,
const b2Vec2& position);
119 void Reset(
const b2Vec2& position);
122 void Draw(
b2Draw* draw)
const;
126 void SolveStretch_PBD();
127 void SolveStretch_XPBD(
float dt);
128 void SolveBend_PBD_Angle();
129 void SolveBend_XPBD_Angle(
float dt);
130 void SolveBend_PBD_Distance();
131 void SolveBend_PBD_Height();
132 void SolveBend_PBD_Triangle();
133 void ApplyBendForces(
float dt);
138 int32 m_stretchCount;
141 b2RopeStretch* m_stretchConstraints;
142 b2RopeBend* m_bendConstraints;
A 2D column vector.
Definition b2_math.h:42