JelloSwift
Soft-body physics dynamics library written in Swift
Video demo available here: https://www.youtube.com/watch?v=0J6P5WaxSHA
This is a port of JelloPhysics, a C#/C++ soft-body physics engine (the original license is included at the JelloPhysics-License.md file).
This port more closely resembles the AS3 version of the engine, JelloAS3, with many optimizations and modifications made to better fit Swift, with the biggest change being how spring and pressure bodies are defined.
The project comes with a demo scene for the iPad, so just fire up and drag the soft bodies around!
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
To compile this project, you require Xcode 10.0 w/ Swift 4.2 installed.
Installation
CocoaPods
JelloSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JelloSwift"
Swift Package Manager
JelloSwift is also available as a Swift Package
import PackageDescription
let package = Package(
name: "project_name",
targets: [],
dependencies: [
.Package(url: "https://github.com/LuizZak/JelloSwift.git", majorVersion: 0, minor: 14)
]
)
Author
LuizZak, [email protected]
License
JelloSwift is available under the MIT license. See the LICENSE file for more info.