Skip to content

Commit

Permalink
Fix Below Z translation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewECarlson authored Apr 15, 2020
1 parent 8a5717a commit ec8cda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relpos/rel.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (rp *Rel) Pos(op mat32.Vec3, osz mat32.Vec2, sz mat32.Vec2) mat32.Vec3 {
rs.X = rp.AlignXPos(op.X, osz.X, sz.X)
rs.Y = rp.AlignYPos(op.Y, osz.Y, sz.Y)
case Below:
rs.Z += 1
rs.Z -= 1
rs.X = rp.AlignXPos(op.X, osz.X, sz.X)
rs.Y = rp.AlignYPos(op.Y, osz.Y, sz.Y)
}
Expand Down

0 comments on commit ec8cda7

Please sign in to comment.