further work on rack-mount refactor
This commit is contained in:
20
rack-mount/tray/animate.scad
Normal file
20
rack-mount/tray/animate.scad
Normal file
@ -0,0 +1,20 @@
|
||||
include <../common.scad>
|
||||
use <./entry.scad>
|
||||
|
||||
$vpt = [100,-42,36];
|
||||
$vpr = [70,0,27];
|
||||
$vpd = 445;
|
||||
$vpf = 22.50;
|
||||
|
||||
animateTraySystem(at=$t);
|
||||
|
||||
module animateTraySystem(at=$t) {
|
||||
|
||||
trayU = max(1, ceil(at*3));
|
||||
x=100;
|
||||
y=100;
|
||||
dx = abs(lerp(a=-40, b=40, t=at));
|
||||
dy = abs(lerp(a=-30, b=30, t=at));
|
||||
|
||||
traySystem(trayU=trayU, baseWidth=x+dx, baseDepth=y+dy, mountPoints=[]);
|
||||
}
|
||||
Reference in New Issue
Block a user