Animate a pendulum: Difference between revisions
m
→{{header|Zig}}: update @intToFloat() to @floatFromInt()
Recombinant (talk | contribs) (Add Zig solution) |
Recombinant (talk | contribs) m (→{{header|Zig}}: update @intToFloat() to @floatFromInt()) |
||
Line 5,581:
while (!c.WindowShouldClose()) // Detect window close button or ESC key
{
const half_width = @
const pivot = c.Vector2{ .x = half_width, .y = 0 };
|