← Back

ofxMSAPhysics

github.com/memoakten/ofxMSAPhysics · @memoakten
OF 0.9 Physics

C++ openFrameworks addon for particle/constraint based physics library with springs, attractors and collision. It uses a very similar api to the traer.physics library for processing to make getting into it as easy as possible. All classes are template based with typedefs for physics in 2D or 3D - Potentially even more dimensions!

57 14 Last commit 10y ago Created 14y ago

README

ofxMSAPhysics



Introduction

C++ openFrameworks addon for particle/constraint based physics library with springs, attractors and collision. It uses a very similar api to the traer.physics library for processing to make getting into it as easy as possible. All classes are template based with typedefs for physics in 2D or 3D - Potentially even more dimensions! Demo at www.memo.tv/msaphysics

Licence

The code in this repository is available under the MIT License. Copyright (c) 2008-2012 Memo Akten, www.memo.tv The Mega Super Awesome Visuals Company

Installation

Copy to your openFrameworks/addons folder.

Dependencies



Compatibility

tested with openFrameworks 0.7.2 - 0.9 I am generally testing only with openFrameworks, however it should work with Cinder too. If it doesn't, please file an issue.

Known issues

none

Version history

TODO:

v4.0 01/02/2016

Major updates under the hood

I've ditched my own smart pointer class (ofxObjCPointer) in favour of std::shared_ptr and std::weak_ptr. It's much nicer. This has had an effect on the public API, breaking backwards compatibility a bit (for the better I think). I've made it not possible to create particles or constraints directly, or on the stack. But you always need to use a factory method, which returns a shared pointer. Particle3D_ptr p = Particle3D::create(...); world->addParticle(p);

or

Particle3D_ptr p = world->createParticle(...);

v3.2 23/09/2012

v3.1

v3.0

v2.5

v2.1 07/04/2009

v2.0.2a 09/03/09

v2.0a 29/02/09

v1.2 12/11/08

v1.0 03/10/08



Get this addon

HTTPS
SSH