Log In  

Cart #cables-3 | 2022-09-24 | Code ▽ | Embed ▽ | Forks ▽ | License: CC4-BY-NC-SA
6

Simple and fast faking of cables hanging between two points (made for another project).
Not physic base, it use Bézier curves to fake a lot of cables at once (±320 cables at 10 steps, @30fps)

  • Right and left click to move last cable's start/end point.
  • ❎ to add a cable
  • 🅾️ to remove a cable
  • ➡️ to increase number of steps
  • ⬅️ to decrease number of steps
  • ⬇️ or wheel-down to increase the dangling of the cables
  • ⬆️ or wheel-up to decrease the dangling of the cables
  • pause menu to enable/disable debug view (show steps and controls points)

changelog

2022-09-24

  • fixed buttons UI typo

2022-09-22

  • added dangling control
  • tweaked controls
P#117794 2022-09-22 10:39 ( Edited 2022-09-24 18:29)

:: dw817

Reminds me of hanging Christmas lights, @choo-t. Perhaps there is a game in that idea ?

P#117805 2022-09-22 16:32
:: choo-t

@dw817 Maybe in December, but for now, I was tinkering with the idea of some logic gate / circuit game.

P#117843 2022-09-23 07:49
:: Ivoah

Looks like Shenzhen I/O, love it :)

P#117851 2022-09-23 15:44

started lagging at about 900

i have too much time on my hands

P#117858 2022-09-23 17:58 ( Edited 2022-09-23 17:59)

@dw817, that's the premise of Christmas Sneks 2. The light string has a draping arc when it's plugged in, but I based on circular curve rather than a Bézier curve, which would have been much cooler. I really wanted a catenary, but didn't have the time or inclination to figure out the math.

P#117860 2022-09-23 18:29

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-10-07 13:24:11 | 0.054s | Q:22