aboutsummaryrefslogtreecommitdiff
path: root/src/rope.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-18 19:48:30 -0500
committeriamcheeseman <[hidden email]>2026-01-18 19:48:30 -0500
commit1c605da3ff8dc4295d2f9a85f5b7c8891ca84464 (patch)
treec732f5411ce92d2e3235d086e4d3ba14aa9e811e /src/rope.odin
parent5d0c30e56aecbaa9d1f0bb806de2688d8b198f2c (diff)
improve rope rendering
Diffstat (limited to 'src/rope.odin')
-rw-r--r--src/rope.odin6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rope.odin b/src/rope.odin
index f66a3bb..b321dab 100644
--- a/src/rope.odin
+++ b/src/rope.odin
@@ -25,7 +25,11 @@ draw_ropes :: proc() {
for i in 0..<len(rope.verlet.nodes) - 1 {
cur := rope.verlet.nodes[i]
nex := rope.verlet.nodes[i + 1]
- rl.DrawLineV(cur.pos, nex.pos, rl.WHITE)
+ rl.DrawLineV(
+ linalg.round(cur.pos),
+ linalg.round(nex.pos),
+ rl.Color{76, 62, 36, 255},
+ )
}
a := rope.verlet.nodes[len(rope.verlet.nodes) - 1]