Toot

Written by kandid on 2025-01-21 at 05:19

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

=> View attached media

=> More informations about this toot | View the thread | More toots from kandid@chaos.social

Mentions

Tags

=> View java tag | View genuary21 tag | View genuary2025 tag | View GENUARY tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113864657990130160
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
225.746341 milliseconds
Gemini-to-HTML Time
1.29549 milliseconds

This content has been proxied by September (3851b).