Skip to content

AdaEngine/box2d-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!