Skip to content

Commit 4b8c9c3

Browse files
committed
funscript conversion: add more points
1 parent 184bcc6 commit 4b8c9c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

funscript_1d_to_2d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def convert_funscript_radial(funscript):
3535
start_t, end_t = at[i:i+2]
3636
start_p, end_p = pos[i:i+2]
3737

38-
n = int(np.clip(float((end_t - start_t) / .05), 1, None)) # 10 points per second
38+
points_per_second = 25
39+
n = int(np.clip(float((end_t - start_t) * points_per_second), 1, None))
3940
t = np.linspace(0.0, end_t - start_t, n, endpoint=False)
4041
theta = np.linspace(0, np.pi, n, endpoint=False)
4142
center = (end_p + start_p) / 2

0 commit comments

Comments
 (0)