- canvas.OutlineRectRot(
- Rect<float>(
- cam.ToScreen(c->bounds.Position() + c->arm.Position()),
- cam.ToScale(c->arm.Size())
- ),
- cam.ToScreen(c->bounds.Position() + c->armOrigin),
- c->armAngle
- );
+ if (c->orient == Entity::LOOKS_LEFT) {
+ canvas.OutlineRectRot(
+ Rect<float>(
+ cam.ToScreen(c->bounds.LeftTop() + c->arm.LeftTop()),
+ cam.ToScale(c->arm.Size())
+ ),
+ cam.ToScreen(c->bounds.LeftTop() + c->armOrigin),
+ c->armAngle
+ );
+ //canvas.SetColor(dotColor);
+ //canvas.Cross(cam.ToScreen(c->bounds.LeftTop() + c->armOrigin), 5);
+ } else {
+ canvas.OutlineRectRot(
+ Rect<float>(
+ cam.ToScreen(c->bounds.RightTop() + MirrorY(c->arm.RightTop())),
+ cam.ToScale(c->arm.Size())
+ ),
+ cam.ToScreen(c->bounds.RightTop() + MirrorY(c->armOrigin)),
+ -c->armAngle
+ );
+ //canvas.SetColor(dotColor);
+ //canvas.Cross(cam.ToScreen(c->bounds.RightTop() + MirrorY(c->armOrigin)), 5);
+ }