Prompt: Create a collision detection system.
Emitting a sound grain when the round pale "cursor" shapes enters a red rectangular "calve" shape.
Only to find the moment when moving cursor shape start to overlap with the calve. Or was leaving.
This is not a physics engine. No reflection on hit. No libraries used. I did this last year for a short public gig. It was more work than i could have done in 1 day.
https://gitlab.com/metagrowing/jean/-/blob/main/src/jean/model/Cell.java?ref_type=heads#L150
https://gitlab.com/metagrowing/jean/-/blob/main/src/jean/model/Overlapping.java?ref_type=heads
[#]java #genuary21 #genuary2025 #genuary
=> More informations about this toot | View the thread | More toots from kandid@chaos.social
=> View java tag | View genuary21 tag | View genuary2025 tag | View GENUARY tag This content has been proxied by September (3851b).Proxy Information
text/gemini