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.