From 8e925f0ec6f8c5bdd0f5b99f6ff24bfa7b790e22 Mon Sep 17 00:00:00 2001 From: anshk Date: Fri, 27 Mar 2026 19:29:11 +0530 Subject: [PATCH] chore: added day2 update --- Week-1/Days-update/Day2.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Week-1/Days-update/Day2.md diff --git a/Week-1/Days-update/Day2.md b/Week-1/Days-update/Day2.md new file mode 100644 index 0000000..ff3c773 --- /dev/null +++ b/Week-1/Days-update/Day2.md @@ -0,0 +1,12 @@ +# Day 2 Update + +- Built the React Three Fiber app for Task 1 (`Week-1/Task-1/r3f/solar-system`) with full Vite project setup and base files. +- Implemented a simple solar system scene in R3F: + - Added Sun and Earth meshes. + - Created parent-child hierarchy using a `` for Earth orbit pivot. + - Animated orbit with `useFrame` by rotating the parent group each frame. +- Added/updated documentation for the day: + - Added Day 1 summary (`Week-1/Days-update/Day1.md`). + - Updated Task 1 notes (`Week-1/Task-1/TaskNotes.md`) with Vanilla, R3F, and Thob comparison. + - Added Builder notes (`Week-1/Task-1/builder/BuilderNotes.md`) including observed warnings/errors and limitations. +- Key learning: Scene graph parent-child transforms are straightforward in Vanilla and R3F, while Thob showed unstable behavior when changing child local position under parent transforms.