Skip to content

luccachantre/webgl-physics-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webgl-physics-simulation

This is another project I completed for a computer animation class at WPI, where it simulates 3 object types or "species" interacting with each other. Certain colors are attracted to certain others, and repel other colors as well.

Object behaviors

Blue chases green, green chases red, and red chases blue. Green avoids blue, red avoids blue, and blue avoids red. if Blue catches green, it will change it's color to green, and so on with the other colors.

every object has a detection radius, if another object reaches that radius, the attraction and repelling forces get applied to the objects and their new velocities are calculated and applied as well

all objects avoid the grey square in the middle

About

This is another project I completed for a computer animation class at WPI, where it simulates 3 object types or "species" interacting with eachother, certain colors are attracted to certain others, and repel other colors as well.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors