@@ -38,27 +38,19 @@ def main():
38
38
) # Red
39
39
40
40
# Debug arrow
41
- debug_arrow = scene .draw_debug_arrow (
42
- pos = (1 , 0 , 0 ), vec = (0 , 0 , 1 ), radius = 0.02 , color = (1 , 0 , 0 , 0.5 )
43
- ) # Green
41
+ debug_arrow = scene .draw_debug_arrow (pos = (1 , 0 , 0 ), vec = (0 , 0 , 1 ), radius = 0.02 , color = (1 , 0 , 0 , 0.5 )) # Green
44
42
45
43
# Debug sphere
46
- debug_sphere = scene .draw_debug_sphere (
47
- pos = (1.5 , 0 , 0.5 ), radius = 0.1 , color = (0 , 0 , 1 , 0.5 )
48
- ) # Blue with alpha
44
+ debug_sphere = scene .draw_debug_sphere (pos = (1.5 , 0 , 0.5 ), radius = 0.1 , color = (0 , 0 , 1 , 0.5 )) # Blue with alpha
49
45
50
46
# Debug multiple spheres
51
47
sphere_positions = np .array ([[2 , 0 , 0.3 ], [2 , 0 , 0.5 ], [2 , 0 , 0.7 ]])
52
- debug_spheres = scene .draw_debug_spheres (
53
- poss = sphere_positions , radius = 0.05 , color = (1 , 1 , 0 , 0.5 )
54
- ) # Yellow
48
+ debug_spheres = scene .draw_debug_spheres (poss = sphere_positions , radius = 0.05 , color = (1 , 1 , 0 , 0.5 )) # Yellow
55
49
56
50
# Transformation matrix for frame (identity matrix with translation)
57
51
T = np .eye (4 )
58
52
T [:3 , 3 ] = [2.5 , 0 , 0.5 ]
59
- debug_frame = scene .draw_debug_frame (
60
- T = T , axis_length = 0.5 , origin_size = 0.03 , axis_radius = 0.02
61
- )
53
+ debug_frame = scene .draw_debug_frame (T = T , axis_length = 0.5 , origin_size = 0.03 , axis_radius = 0.02 )
62
54
63
55
# Simulation loop
64
56
for step in range (500 ):
0 commit comments