## Raycasting engine in factorio

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art , computers.
Qon
Smart Inserter
Posts: 1528
Joined: Thu Mar 17, 2016 6:27 am
Contact:

### Re: Raycasting engine in factorio

arrow in my gluteus wrote:
Tue May 26, 2020 6:47 pm
if anyone is interested you can follow along with the development of version 2.0 of this raycasting engine on my second channel: https://www.youtube.com/playlist?list=P ... Le9xX_7tjb

Burner Inserter
Posts: 6
Joined: Tue Oct 13, 2020 2:42 am
Contact:

### Re: Raycasting engine in factorio

This is so cool! I'm feeling inspired to build out a CPU in factorio, and i hadn't really thought of a raycaster but i'm definitely going to try to build toward something similar

arrow in my gluteus
Long Handed Inserter
Posts: 55
Joined: Mon Apr 24, 2017 1:52 pm
Contact:

### Re: Raycasting engine in factorio

I've created a new video, explaining how I did sin() and cos(): https://www.youtube.com/watch?v=FSy9UKs9eeY

Amarula
Filter Inserter
Posts: 337
Joined: Fri Apr 27, 2018 1:29 pm
Contact:

### Re: Raycasting engine in factorio

This is amazing! Thank you!
Luck is not a robust control.

AmericanPatriot
Filter Inserter
Posts: 470
Joined: Sun Feb 16, 2020 12:47 am
Contact:

### Re: Raycasting engine in factorio

I was surprised how accurate the approximation was. It's almost like it was made my Ramanujan or something.
Sarcasm and insults are generally neither helpful nor appreciated.

MrRozdor
Burner Inserter
Posts: 7
Joined: Wed Jun 01, 2016 3:23 am
Contact:

### Re: Raycasting engine in factorio

If you're interested, I've made sin(x) with precision 10^-9 using taylor series. Computation of sin(pi/3) takes 29 ticks.

### Who is online

Users browsing this forum: No registered users