Can I build an interactive 3D Rubik's cube in Processing? Yes! Someday I hope to return to this project and add an AI solver! Code: https://thecodingtrain.com/challenges...
p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...
Other Parts of this Challenge:
Rubik's Cube Part 2: • Coding Challenge #142: Rubik's Cube P...
Rubik's Cube Part 3: • Coding Challenge #142: Rubik's Cube P...
Previous video: • Coding Challenge #141: Calculating Di...
Next video: • Coding Challenge #143: Quicksort Visu...
All videos: • Coding Challenges
References:
peasycam: http://mrfeinberg.com/peasycam/
I am the cube: https://iamthecu.be
Rotation matrix on Wikipedia: https://en.wikipedia.org/wiki/Rotatio...
Videos:
Code Bullet: • A.I. Solves a 55 x 55 x 55 Rubik's Cube
Matrix Transformations: • How to Rotate Shapes in p5.js (transl...
Matrix Multiplication for 3D Rendering: • Matrix Multiplication for 3D Rendering
Coding Train Live 173: • Coding Train Live 173: Rubik's Cube a...
Related Coding Challenges:
#112 3D Rendering with Rotation and Projection: • Coding Challenge #112: 3D Rendering w...
Timestamps:
0:00:00 Introduction
0:01:50 Code! Creating the cube
0:07:56 Adding a Camera With PeasyCam
0:11:44 Adding Colors
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
Website: http://thecodingtrain.com/
Share Your Creation! https://thecodingtrain.com/guides/pas...
Suggest Topics: https://github.com/CodingTrain/Sugges...
GitHub: https://github.com/CodingTrain
Discord: https://thecodingtrain.com/discord
Membership: http://youtube.com/thecodingtrain/join
Store: https://standard.tv/codingtrain
Twitter: / thecodingtrain
Instagram: / the.coding.train
Coding Challenges: • Coding Challenges
Intro to Programming: • Start learning here!
p5.js: https://p5js.org
p5.js Web Editor: https://editor.p5js.org/
Processing: https://processing.org
Code of Conduct: https://github.com/CodingTrain/Codeo...
This description was autogenerated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...
#rubikscube #rotationmatrix #peasycam #simulation #processing