Jordan Parsons
- Second Year Architect

Processing – Boid Steering v1

Posted By: Jordan Parsons

This is my attempt to create a class of creatures that I can manipulate with different forces and rules. I am doing this as a base to create a pattern for an upcoming project. I have the basics down, but the real trouble for me is collision detection, but I am working through it. I have followed a lot of tutorials, and I think I am getting close, but it’s still rather glitchy. See for yourself, grab the source and un-quote //collide(boids);. Any tips would be greatly appreciated, and source after the jump.

http://jordanparsons.com/processing/boid_steering_v1/

Boid Steering
(more…)



Processing – (Not so) Glitchy Gravity

Posted By: Jordan Parsons

Well I’m trying to wrap my head around vectors in processing because I am not giving up on my flocking simulation and vectors seem to be key to the navigation. So I am following some tutorials by Daniel Shiffman. They are some very nice tutorials and I worked on adapting his gravity tutorial, so that the objects rotate, and move side to side and decelerate when they hit walls. I am having some serious issues with glitching when they settle to the floor and every now an then one goes right through a wall. I can’t really explain it. As always any tips or thoughts are appreciated and welcome. By the way hit space to smack the boids up in the air. http://www.jordanparsons.com/processing/gravity_v1/

Edit:
Thanks to Adam Thomas I made a series of changes to the code, and its much more stable. I also added a holder class so that I can implement the boids with a for loop instead of by hand. The new source is bellow, the old is still avaliable if you check the old app above. Here is the new version.

http://www.jordanparsons.com/processing/gravity_v2/

Gravity
(more…)



Processing – Object Oriented Programming Box Boids

Posted By: Jordan Parsons

With all my recent free time (I’m on break) I’ve been really going at processing. Here is another batch of code I wrote. This one works as an applet, so you can see it in action, http://www.jordanparsons.com/processing/oop_boxes/. Its a simple series of boxes with small circles in them that function as individual “boids” or entities that move a set speeds and bounce off the walls of the image. You can click to add another boid as well. Hit the jump for the source and more info.

Boxes
(more…)



© 2009 Jordan Parsons
Grab the feed