box2d

main

The box2d bridging to Swift
AdaEngine/box2d-swift

box2d

Little wrap around box2d library.

How to use

  1. Add package as dependency to your project .package("https://github.com/SpectralDragon/box2d-swift", .branch("main"))
  2. Add target box2d to your target
  3. Add this code to your target:
// For Swift 5.6
swiftSettings: [
    .unsafeFlags(["-Xfrontend", "-enable-cxx-interop"])
]

// For Swift 5.7 and higher
swiftSettings: [
    .unsafeFlags(["-Xfrontend", "-enable-experimental-cxx-interop"])
]
  1. Enjoy!

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun May 11 2025 04:09:29 GMT-0900 (Hawaii-Aleutian Daylight Time)