Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I do not need help this is to help others in basic 3D
- LANCEBOX1104
- Scratcher
90 posts
I do not need help this is to help others in basic 3D
ok so use this script:
this is just projection, rotation is very complex so ill just post an engine
Helpful note: If you also want collisions, just use 3 lists x, y, z delete all of them each frame and add the points in objects that you make
then, use i as a counter so cam x > item i of x and cam x < item i+1 of x do this for each list if one of the statements is false change i by 1
Disclaimer: If this is complex or doesn't work it's probably because im tired, and kinda sick.
define 3D (x) (y) (z)If you want camera movement: its x = (x-cam x)/(z-cam z)*240 and y= (y-cam y)/(z-cam z)*240
go to x: (((x)/(z))*240) y: (((y)/(z))*240)
this is just projection, rotation is very complex so ill just post an engine
Helpful note: If you also want collisions, just use 3 lists x, y, z delete all of them each frame and add the points in objects that you make
then, use i as a counter so cam x > item i of x and cam x < item i+1 of x do this for each list if one of the statements is false change i by 1
Disclaimer: If this is complex or doesn't work it's probably because im tired, and kinda sick.
Last edited by LANCEBOX1104 (March 25, 2024 03:10:17)
- Paddle2See
- Scratch Team
1000+ posts
I do not need help this is to help others in basic 3D
It's really nice that you want to help out with a guide! However, we have a number of them in the forums already and we don't have a good way to showcase any more. If you want to make a guide in a Scratch project, that would be fine. You could advertise it in the “Show and Tell” section too.
There are lots of other ways to help out in the forums too. Helpful Scratchers are always welcome in the “Questions About Scratch”, “Help With Scripts”, “Requests” and other sections. Just look around and ask questions
There are lots of other ways to help out in the forums too. Helpful Scratchers are always welcome in the “Questions About Scratch”, “Help With Scripts”, “Requests” and other sections. Just look around and ask questions
Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.
This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)
;
- Discussion Forums
- » Help with Scripts
- » I do not need help this is to help others in basic 3D