Swift soft body physics engine
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Adding Gemfile Oct 10, 2018
Sources
Tests Documentation fixes, mostly. Jan 28, 2018
.gitignore
.swift-version
.travis.yml
CHANGELOG.md Bumping project to Swift 4.2 Oct 10, 2018
Gemfile Updating .travis.yml Oct 10, 2018
Gemfile.lock
JelloPhysics-License.md
JelloSwift.podspec
LICENSE Replacing files with candidate for core CocoaPods library Feb 14, 2017
Package.swift
Readme.md
_Pods.xcodeproj

Readme.md

JelloSwift

CI Status Version License Platform

Soft-body physics dynamics library written in Swift


they all look so *squishy!*

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, luizinho_mack@yahoo.com.br

License

JelloSwift is available under the MIT license. See the LICENSE file for more info.