Тёмный

2024-Q4-AI 2. Matrix transformations, Linear algebra, OOP 

YellowRobot.XYZ
Подписаться 601
Просмотров 359
50% 1

Whiteboard:
whiteboard.fi/...
Dot product:
www.mathsisfun...
Very good materials on linear algebra and other math topics:
www.3blue1brow...
2.2. Scalar multiplication of matrices
1D example:
share.yellowrob...
2D example:
share.yellowrob...
Dot product examples:
www.studypug.c...
Template:
share.yellowro...
2.3. Implement angle change for player
Use the template provided in task 2.3 with the dot product implementation from task 2.1.
Use the provided source code template and follow the materials given in class.
share.yellowro...
Implement the rotation matrix to make the spaceship rotate around its axis
share.yellowrob...
Implement angle change with arrow keys, complete all todos, submit the source code.
2.4. Implement the translation matrix
Use the template from task 2.3 as a basis, with the dot product implementation from task 2.1.
Implement `translation_mat`. Ensure that the Player is translated in such a way that it rotates around its own axis instead of the bottom line. Implement the translation of objects using `translation_mat`. It is mandatory to combine rotation and translation into a single composite matrix self.C!
Equation:
share.yellowrob...
Submit the code as a file and attach a screenshot.
2.5. Implement scaling matrix for Player
Use the template from task 2.3 with dot product implementation from task 2.1.
Implement the scaling matrix and compress the Player so it's not as wide (include the transformation in the self.C matrix).
share.yellowrob...
Submit the code as a file and attach a screenshot.
2.6. Implement a circle for a planet
Circle drawing algorithm:
www.mathopenre...
Equation, using delta theta from 0 to 360 degrees
share.yellowrob...
----
2.7. Implement L2 normalization
Implement `l2_normalize_vec2d` so that the direction `self.dir` has a unit vector length.
Equation:
share.yellowrob...
2.8. Implement the Gravity Equation
Use the template from Task 2.3, incorporating the dot product implementation from Task 2.1.
Implement a simulated gravity equation between planets and the player. Use the "game physics" version:
share.yellowrob...
Submit the code as a file and include a screenshot.
2.9. Complete the Game
Using the code acquired up to section 2.7, implement the following changes:
1. Implement the Skew matrix and use it to randomly distort the asteroids (share.yellowrob....
2. Implement a simulated gravity equation between planets and the player. Use the "game physics" version:
share.yellowrob....
3. Implement collision detection. Award points for asteroids shot down with the rocket. However, if the player collides with planets or asteroids, the game is lost.
4. Implement planets where the geometry is drawn using the Mid-Point Circle Drawing Algorithm. Points can be generated per quadrant.
Equation:
share.yellowrob...
eps = 0.5
radius = 2

Опубликовано:

 

12 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
The Matrix Transpose: Visual Intuition
26:01
Просмотров 28 тыс.
Fast Inverse Square Root - A Quake III Algorithm
20:08
🕊️Valera🕊️
00:34
Просмотров 3,2 млн
КУШАТЬ ХОЧЕШЬ? #дистори
00:15
Просмотров 178 тыс.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Просмотров 319 тыс.
Linear Algebra 9 | Inner Product and Norm
12:23
Просмотров 33 тыс.
Dear Functional Bros
16:50
Просмотров 523 тыс.
КАК УСТРОЕН TCP/IP?
31:32
Просмотров 164 тыс.