プレイ日記
Can somebody please help me? I would like to calculate a circle's two xy velocities after collision with another circle, so I set up this simulation. If you'd like to run the code in the screenshot, download [5SNEE3KJ] If anybody can solve this I will be eternally grateful, this is the one algorithm that I have been avoiding... I am clueless.
5そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
Could you download M3XNNEKY and refer to EX_CIRCOL1 or EX_CIRCOL2. EX_CIRCOL2 is physically stricter than EX_CIRCOL1.
0そうだね
未プレイ
返信[2]
親投稿
Yes yes thank you Hanzo!
1そうだね
プレイ済み
返信[3]
親投稿
Hanzo do you think you could explain how your solution EX_CIRCOL2 works?
1そうだね
プレイ済み
返信[4]
親投稿
Hanzo rzsense
I think my English vocabulary is not enough to explain it, but I'll make efforts. #1: When an impact is applied, rotate circle 1 around circle 2 with velocity vectors until the line connecting center of circle 1 with circle 2 overlaps X axis. #2: Swap X components of velocity vectors of 2 circles. #3: Restore #1 to original status.
0そうだね
未プレイ
返信[5]
親投稿
Hanzo rzsense
Could you download B5E3C3QV and refer to EX_CIRCOL2E? It explains the process to calculate velocity vectors after collision.
0そうだね
未プレイ