particle physics

Quartz Composer Physic | Collision

biro's picture

Hello everyone, I'm trying to simulate a physic system with collision detection in quartz, but with no results.

First thing first. I've downloaded the ParticleTool from the download section, with no results. Quartz is unable to find the tool in the library. (i've a mbp with os x 10.6.7 and the 0.3 version of particle tool) Despite this, i've decided to try with javascript (i'm feeling more comfortable with javascript or ActionScrip, and i found a lot of examples for them)

the question is: How can i do that with quartz? and if there's no way to make ParticleTools working on my mac, how can i do it with javascript?!

and why did apple made no user manual about quartz?! :(

Thank You so much!!!

Particle Physics (Composition by dust)

Author: dust
License: MIT
Date: 2011.02.04
Compatibility: 10.6
Categories:
Required plugins:
(none)

update... added terminal velocities parameter and simplified the code down to a first order linear solve. wanted to clean things and add interactions and stuff. enjoy.

this is the euler richardson method for newtons law of motion. i figured out how to do this by reading an old true basic version of this book.

http://physics.clarku.edu/courses/125/gtcdraft/chap5.pdf

the euler richards method is more accurate than the euler cromer or euler methods when plotting a 1d simulation against some real data in respects to time + ∆t.

so i decided i would implement it for all the dimensions inside an open cl kernel.

this patch uses a mesh to initialize its start positions so with the right settings this could be used for a model explosion with time freeze type of effect if you set lets say interpolate delta time down to zero then trackball around or something? im sure there are other cool things you could do with it. more orbiting n-bidy types of things to be added soon.

right now there are some basic published inputs.

• min and max for random init of xyz velocity • ∆t or delta time steps for xyz • constant C or drag force • gravity constants for xyz • stick to boundary