hshg
github.com · Open source · Quiet
Fast spatial hash grid in C for broad-phase collision detection
- Developer tools
- Open source
- C
- Day-7 check
- Day-30 check
- collision
- spatial hash
- simulation
- hshg
- spatial hash grid
- broad phase collision
- collision detection c
- neighbor query
- hierarchical grid
- Stars
- 81
- Forks
- 5
- Open issues
- 0
- Last commit
- Found
- 3 years ago
GitHub figures as of . They are context, not a ranking.
hshg is a hierarchical spatial hash grid in C for 1D, 2D and 3D broad-phase collision detection. The author reports checking 500,000 circles in under 5 milliseconds. It suits game and simulation developers who need fast neighbor and collision queries.
Repository description on GitHub: “1D/2D/3D Hierarchical Spatial Hash Grid written in C”
What it does
- Hierarchical spatial hash grid for 1D, 2D and 3D broad-phase collision
- O(1) insertion and removal of objects
- No further memory is requested after an object is inserted
Good for
- Find nearby entities for collision checks in a game loop
- Speed up neighbor queries in a particle simulation
Suits: Game and simulation developers needing fast neighbor queries.
Worth knowing: Most of the documentation covers only the 2D version
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw hshg on , when don_shadaman posted it to Show HN. GitHub listed no published releases for supahero1/hshg when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 59 points, 9 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 59 points, 9 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: supahero1/hshg
- Found: don_shadaman posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was hshg released?
- No dated release record is available. Kip found it on Show HN on 1 Jan 2023.
- Is hshg open source?
- Its source is public on GitHub at supahero1/hshg under the Apache-2.0 licence.
- What does hshg run on?
- Library.
- Is hshg free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is hshg still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | supahero1/hshg REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-34210305. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.