# How Do I Make 3D Raycasting Floors

**URL:** https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473
**Category:** Help
**Tags:** extension
**Created:** [April 29, 2024, 2:36am UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473 "2024-04-29T02:36:40Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![ComLloyd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/comlloyd/32/14860_2.png) [@ComLloyd](https://forum.makecode.com/u/ComLloyd)
#### Post date: [April 29, 2024, 2:36am UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/1 "2024-04-29T02:36:40Z")

</div>

I am trying to make Bob-Omb Battlefield From Super Mario 64 but i cant get floors to work because the pxt ray casting extension does not work with floors does anyone know any alternatives

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [April 29, 2024, 4:02pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/2 "2024-04-29T16:02:47Z")

</div>

The raycasting extension will have floors in the near future, but i dont think you will get anything looking like bob omb battlefield with raycasting. Im not saying this is not possible in makecode, but its certainly not easy to recreate something like that.

---

<div class="post-metadata">

### Author: ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)
#### Post date: [April 29, 2024, 4:05pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/3 "2024-04-29T16:05:27Z")

</div>

Tile floors don’t work in the base extension, but there are floors in the link in this post:

> [@Raycasting 3D render -- Blocks Edition](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/206):
>
> In 3D world overlay condition is a little difference from 2D world. I modified some of your project. Jump condition. Focus on Z direction, use overlaps in Z dimension block to filter touching in Z first. Then, filter falling state by sprite.ZVelocity\<0 Then, optional, sprite.ZPosition\> otherSprite.ZPosition + [Height of otherSprite after scale] - AFewToleranceHeight Delay with Throttle block of Timer after hurt. Avoid pause in event function Animation setting. Raycasting provide…

---

<div class="post-metadata">

### Author: ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)
#### Post date: [April 29, 2024, 4:07pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/4 "2024-04-29T16:07:18Z")

</div>

No one has figured out how to do 3d platformers. Usually, u just have like a maze. No jump or y axis of any sort.

---

<div class="post-metadata">

### Author: ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)
#### Post date: [April 30, 2024, 4:06am UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/5 "2024-04-30T04:06:00Z")

</div>

i mean i can try to make some code that takes a image of your floor and transelate it based on your position and angle to look like a floor  
but its actually the background

---

<div class="post-metadata">

### Author: ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)
#### Post date: [May 2, 2024, 7:26pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/6 "2024-05-02T19:26:01Z")

</div>

i didnt manage to do it Xd

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [May 2, 2024, 10:22pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/7 "2024-05-02T22:22:32Z")

</div>

it has already been done before and you can edit it how you want

> [@Raycasting 3D render -- Blocks Edition](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/126):
>
> FLOOR and BACKGROUND slight_smile Background is ready for device, floor only for simulator or raspberry pi, great for making racing games. I have lots of crazy ideas where this can go, I think that simple Minecraft style is possible to achieve slight_smile I only dont know how to combine your work with mine, I tried to make extension, that would use your extension (using “extend”), but you have to many private variables HOW TO USE - right now open this project and start from scratch, m…

---

<div class="post-metadata">

### Author: ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)
#### Post date: [August 18, 2025, 6:54pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/8 "2025-08-18T18:54:56Z")

</div>

> [@Josef](#):
>
> No one has figured out how to do 3d platformers. Usually, u just have like a maze. No jump or y axis of any sort.

I noticed that someone had created 3D platformers and was utilizing advanced techniques. The user I follow, @Kiwiphoenix364, has topics, one of which is 3D platformer. To get the direct link, here it is: [3D platformer - Arcade - Microsoft MakeCode](https://forum.makecode.com/t/3d-platformer/13175). I think I saw one of them was a 3D platformer, something like that. I am studying it as well, just letting you know.

---

<div class="post-metadata">

### Author: ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)
#### Post date: [August 27, 2025, 5:05pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/9 "2025-08-27T17:05:37Z")

</div>

will gta6 come out before he understands the code?

---

<div class="post-metadata">

### Author: ![BlobDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobdev/32/25519_2.png) [@BlobDev](https://forum.makecode.com/u/BlobDev)
#### Post date: [September 2, 2025, 4:48pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/10 "2025-09-02T16:48:30Z")

</div>

> [@3d Rendering with floor and ceiling!](https://forum.makecode.com/t/3d-rendering-with-floor-and-ceiling/29758/1):
>
> I’ve been making some tweaks to AqeeAqee’s wonderful raycasting extension and there’s a bit to fix yet on some of my lazy code but I wanted to show off what I’ve got so far, now with the ability to add a tilemap to be rendered as the game’s ceiling. [ceiling render]

---

<div class="post-metadata">

### Author: ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)
#### Post date: [September 2, 2025, 4:55pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/11 "2025-09-02T16:55:12Z")

</div>

I was planning to say that extension as well, but honestly that extension can just have floors and ceilings and have 1 floor, but if you want more than 1 floor, I still recommend using the [3D platformer - Arcade - Microsoft MakeCode](https://forum.makecode.com/t/3d-platformer/13175) extension.

---

<div class="post-metadata">

### Author: ![jackson1](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jackson1](https://forum.makecode.com/u/jackson1)
#### Post date: [September 18, 2025, 5:39pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/12 "2025-09-18T17:39:08Z")

</div>

i am trying to get the floors can anyone help me

---

<div class="post-metadata">

### Author: ![goingham](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@goingham](https://forum.makecode.com/u/goingham)
#### Post date: [December 16, 2025, 12:36am UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/13 "2025-12-16T00:36:47Z")

</div>

I used sprite overlap to achieve a 3D movement system, when the player overlaps with the sprite the Z position changes

forever

if \<(mysprite) overlaps with (hill)\>

set sprite (mysprite) [ZOffset]=#

else

set sprite (mysprite) [ZOffset]=#

---

<div class="post-metadata">

### Author: ![goingham](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@goingham](https://forum.makecode.com/u/goingham)
#### Post date: [May 21, 2026, 7:23pm UTC](https://forum.makecode.com/t/how-do-i-make-3d-raycasting-floors/28473/14 "2026-05-21T19:23:29Z")

</div>

The closest I got to floors is spawning one or a few pixel sprites on every tile that isnt a wall.
