Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: jakecoffman/cp

Tags

v2.3.3

Toggle v2.3.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Pass UserData instead of CollisionHandler in PostSolveFunc. (#48)

Co-authored-by: Jon <[email protected]>

v2.3.1

Toggle v2.3.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix index out of range panic in ProcessComponents (#47)

* Fix index out of range panic in ProcessComponents

This fixes a regression introduced in commit f1e35a6 (modernize for loops 2).

When modernizing the for loop from traditional style to range syntax,
the manual i++ increment was not removed, causing a double-increment bug.

The for..range statement automatically increments the index variable,
so the manual i++ at line 606 caused the loop to skip indices and
eventually panic with 'index out of range'.

Fixes the panic that occurs when SleepTimeThreshold != INFINITY.

* Revert to original loop pattern for consistency

Instead of removing the manual i++ increment, revert the for loop to its
original pattern before PR #43. This maintains consistency with the
pre-modernization code structure where loops with conditional continue
statements use manual index management.

The original pattern was:
for i := 0; i < len(space.dynamicBodies); {
    if condition {
        continue  // Skip i++
    }
    i++  // Increment only when not skipping
}

v2.3.0

Toggle v2.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fixes #45 lower Go version for Ebitengine (#46)

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #43 from setanarut/modernize

Modernize for Go 1.24.4

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adds *Space ReindexShape (#39)

v2.0.2

Toggle v2.0.2's commit message
fix #33 NaN prevention not working

v2.0.1

Toggle v2.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #30 from setanarut/master

Fixes (go-staticcheck problems)

v1.2.1

Toggle v1.2.1's commit message
fix #24 crash when using spatial hash

v1.2.0

Toggle v1.2.0's commit message
fix #23 implement shape query

v1.1.0

Toggle v1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
shape: Add support for setting mass/density on Shapes (#19)