Skip to content

UBCMOCCA/CPSC426_A4_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebGL Phsyics Work

Intro

This code implements a framework that will allow you to get started with a multi-agent simulation in WebGL.

Instructions

  1. Download the code. You can either clone/fork the repository or download the code as a zip file.
  2. Typically JavaScript is sent from a server and no JavaScript files are stored on your "local" computer. This makes it a little more challenging to run javaScript code, especially if other JavaScript files are accessed. Some web browser will deny access to files on your local machine (for good reason). There are two ways to get around this. You can install a webserver on your computer, this is not very difficult, installing something like WAMP or LAMP works well. If you don't want to install a webserver on your computer you will have to disable the security precautions of your web browser to allow the running of local scripts
  1. Select and open the file examples/vehicle.html file to start the example.
  2. You result should look similar to this video.

For A4

Implement the methods at the bottom of A4.js that will allow the flocking simulation to function properly.

About

Javascript code for multi agent simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published