${Q1}${PRNTFMT} "mkdir" "$@"
${Q2}mkdir -p $@
+#${SRCSDIR}%.cpp: ${SRCSDIR}%.h
+
# cause the below directory rules to work out
.SECONDEXPANSION:
virtual void applyImpulse(const Vector2& impulse);
virtual void applyImpulse(const Vector2& impulse, const Vector2& at);
+ virtual void applyNudge(const Vector2& vecPush);
+
//protected:
Vector2 force;
// CoR penetration fix, adds the jitters
// from center to point
- //Vector2 CollP = normal / normal.Length * Ball.Radius;
- //Ball.Position = Info.Point + CollP;
+ Vector2 vecCollP = vecNorm / vecNorm.length() * pBall->radius;
+ pBall->applyNudge(cInfo.point + vecCollP - pBall->positionRaw());
}
bool getInfo(const Ball* b1, const Ball* b2, CollisionInfo* pcInfo)