ScratchData LogoScratchData
Back to TimoTimTim's profile

Nyan!

TITimoTimTim•Created April 24, 2023
Nyan!
1
1
5 views
View on Scratch

Instructions

ENG: I have seen similar 3d engines in Scratch. There are even Wolfenstein 3D! But I wanted to learn some trigonometry, and make 3D project by myself, without tutorials(and I am just 14, so it was challenge) The result is cool! There are no touching blocks - all the map are storing in list. How does it works? Like regular ray tracer with pen. But how can we touch the walls, that are storing in the list? We create variables X,Y,direction. Distance "1" is length of wall. So we need to make small steps - 0.1 or less. We are starting on the camera position and changing X by sin(direction)*0.1 and Y by cos(directon)*0.1. And when we collide with wall, we need to print wall, by size 3000/distance from camera... I know, it's quite hard. But you can do it too! If you have 3d projects - send them to the comments

Project Details

Project ID840312250
CreatedApril 24, 2023
Last ModifiedMay 8, 2023
SharedApril 24, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root