parent
cde3477874
commit
814405f0be
|
@ -46,7 +46,10 @@ class DisplayShelf(Boxes): # change class name here and below
|
|||
|
||||
for i in range(self.num):
|
||||
pos_x = abs(0.5*t*math.sin(a))
|
||||
pos_y = hs - math.cos(a)*0.5*t + i * (self.h-hs) / (self.num - 0.5)
|
||||
pos_y = hs - math.cos(a)*0.5*t + i * (self.h-abs(hs)) / (self.num - 0.5)
|
||||
if a < 0:
|
||||
pos_y += -math.sin(a) * self.sl
|
||||
|
||||
self.fingerHolesAt(pos_x, pos_y, self.sl, -self.angle)
|
||||
pos_x += math.cos(-a) * (self.sl+0.5*t) + math.sin(a)*0.5*t
|
||||
pos_y += math.sin(-a) * (self.sl+0.5*t) + math.cos(a)*0.5*t
|
||||
|
|
Loading…
Reference in New Issue