Skip to content

Commit

Permalink
Fix missing internal rids (#261)
Browse files Browse the repository at this point in the history
- Also removed the auto updater thing.
- Rewrite how id's work internally, so now instead of handle we use a
global ID for all objects (handles werent globally unique).
  • Loading branch information
Ughuuu authored Oct 2, 2024
1 parent 4e550c1 commit 1cb89e7
Show file tree
Hide file tree
Showing 156 changed files with 1,470 additions and 4,562 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
arch: ["x86_64-linux-android", "aarch64-linux-android", "i686-linux-android"]
precision: [single]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"parallel,simd-stable,serde-serialize", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize", "name": "enhanced-determinism"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
arch: ["aarch64-apple-ios"]
precision: [single]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"parallel,simd-stable,serde-serialize", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize", "name": "enhanced-determinism"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
arch: ["x86_64-unknown-linux-gnu"]
precision: [single]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"parallel,simd-stable,serde-serialize", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize", "name": "enhanced-determinism"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
arch: ["x86_64-apple-darwin"]
precision: [single]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"parallel,simd-stable,serde-serialize", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize", "name": "enhanced-determinism"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cargo test --all-targets --features="build3d,test" --no-default-features
run-integration-tests-2d:
name: Run Integration Tests 2D
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -36,9 +36,9 @@ jobs:
use-dotnet: false
include-templates: true
- name: Run Integration Tests for 2D Build
if: false
shell: sh
run: |
return
./scripts/build-dev-2d.sh
ls bin2d/addons/godot-rapier2d/bin
godot --headless --path ./bin2d test.tscn --quit-after 1000 > output.log 2>&1
Expand All @@ -57,7 +57,7 @@ jobs:
run-integration-tests-3d:
name: Run Integration Tests 3D
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: chickensoft-games/setup-godot@v1
Expand All @@ -67,9 +67,9 @@ jobs:
use-dotnet: false
include-templates: true
- name: Run Integration Tests for 3D Build
if: false
shell: sh
run: |
return
./scripts/build-dev-3d.sh
ls bin3d/addons/godot-rapier3d/bin
godot --headless --path ./bin3d test.tscn --quit-after 1000 > output.log 2>&1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
arch: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc", "aarch64-pc-windows-msvc"]
precision: [single]
dimensions: [{"feature": "dim2", "short": "2d"}, {"feature": "dim3", "short": "3d"}]
features: [{"feature":"parallel,simd-stable,serde-serialize", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize", "name": "enhanced-determinism"}]
features: [{"feature":"simd-stable,serde-serialize,experimental-threads", "name": "simd-parallel"}, {"feature":"enhanced-determinism,serde-serialize,experimental-threads", "name": "enhanced-determinism"}]

steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v0.8.5

- Remove some references to RID internally and use uid instead. Also fix Area issue. by @Ughuuu in #243
- Add deterministic base function. Fix freeze mode. Fix missing events/collisions. by @Ughuuu in #258
- Add integration tests from godot physics tests. Fix inertia issue again. by @Ughuuu in #259
- Fix missing internal rids

## v0.8.4

- add space_step and space_flush_queries by @Ughuuu in https://github.com/appsinacup/godot-rapier-physics/pull/241
Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ publish = false
crate-type = ["cdylib"]

[features]
default = ["build2d", "test"]
default = ["build3d", "test"]
test = []
build2d = ["single-dim2", "serde-serialize", "parallel", "simd-stable"]
build3d = ["single-dim3", "serde-serialize", "parallel", "simd-stable"]
build2d = ["single-dim2", "serde-serialize", "simd-stable"]
build3d = ["single-dim3", "serde-serialize", "simd-stable"]
dim2 = []
dim3 = []
single = []
double = []
# TODO add feature for "glam/libm"
enhanced-determinism = ["rapier2d/enhanced-determinism", "rapier2d-f64/enhanced-determinism", "rapier3d/enhanced-determinism", "rapier3d-f64/enhanced-determinism"]
serde-serialize = ["serde", "hashbrown/serde", "bincode", "serde_json", "godot/serde", "rapier2d/serde-serialize", "rapier2d-f64/serde-serialize", "rapier3d/serde-serialize", "rapier3d-f64/serde-serialize" ]
simd-stable = ["rapier2d/simd-stable", "rapier2d-f64/simd-stable", "rapier3d/simd-stable", "rapier3d-f64/simd-stable"]
simd-nightly = ["rapier2d/simd-nightly", "rapier2d-f64/simd-nightly", "rapier3d/simd-nightly", "rapier3d-f64/simd-nightly"]
parallel = ["rapier2d/parallel", "rapier2d-f64/parallel", "rapier3d/parallel", "rapier3d-f64/parallel"]
experimental-wasm-nothreads = ["godot/experimental-wasm-nothreads", "godot/lazy-function-tables"]
experimental-wasm = ["godot/experimental-wasm", "godot/lazy-function-tables"]
experimental-threads = ["godot/experimental-threads"]
single-dim2 = ["single", "dim2", "rapier2d", "salva2d"]
double-dim2 = ["double", "dim2", "rapier2d-f64", "salva2d"]
single-dim3 = ["single", "dim3", "rapier3d", "salva3d"]
Expand All @@ -35,8 +35,8 @@ double-dim3 = ["double", "dim3", "rapier3d-f64", "salva3d"]
bincode = { version = "1", optional = true }
hashbrown = { version = "0.14" }

godot = { git = "https://github.com/Ughuuu/gdext", branch = "remove-hook", features=["api-4-3", "register-docs"] }
#godot = { git = "https://github.com/godot-rust/gdext", branch = "master", features=["api-4-3", "register-docs"] }
#godot = { git = "https://github.com/Ughuuu/gdext", branch = "remove-hook", features=["api-4-3", "register-docs", "experimental-threads"] }
godot = { git = "https://github.com/godot-rust/gdext", branch = "master", features=["api-4-3", "register-docs"] }

rapier2d = { git = "https://github.com/ughuuu/rapier", branch = "custom-changes", optional = true }
rapier2d-f64 = { git = "https://github.com/ughuuu/rapier", branch = "custom-changes", optional = true}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1cb89e7

Please sign in to comment.