Skip to content

Commit 52b690f

Browse files
committed
fix(flocking): fix flocking rule composition
1 parent 08af28f commit 52b690f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • courses/artificialintelligence/assignments/flocking

courses/artificialintelligence/assignments/flocking/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ It is the force that will align the velocity of the agent with the average veloc
109109
The force composition is made by a weighted sum of the influences of those 3 behaviors. This is the way we are going to work, this is not the only way to do it, nor the more correct. It is just a way to do it.
110110

111111
- \( \vec{F} = K_c \cdot \vec{F_c} + K_s \cdot \vec{F_s} + K_a \cdot \vec{F_a} \) `This is a weighted sum!`
112-
- \( \vec{V_{new}} = \vec{V_{cur}} + \vec{F} \) `This is a simplification!`
112+
- \( \vec{V_{new}} = \vec{V_{cur}} + \vec{F} \cdot \Delta t \) `This is a simplification!`
113113
- \( P_{new} = P_{cur}+\vec{V_{new}} \cdot \Delta t \) `This is an approximation!`
114114

115115
!!! warning
@@ -193,8 +193,8 @@ EOF
193193
The expected output is the position and velocity for each agent after the simulation step using the time frame. After printing each simulation step, the program should wait for the next time frame and then simulate the next step. All values should have exactly 3 decimal places and should not be rounded.
194194

195195
```text
196-
0.000 0.490 0.000 -1.000
197-
0.000 -0.490 0.000 1.000
196+
0.000 0.490 0.000 -0.010
197+
0.000 -0.490 0.000 0.010
198198
```
199199

200200
## Grading

0 commit comments

Comments
 (0)