Giter VIP home page Giter VIP logo

physics_simulator's Introduction

A Physics Simulator

3D unity simulation for Coulomb's Law. Also a 3D display of Palpatine.

To run, only build.exe and build_Data are needed. Place them in the same folder and run build.exe.

General scripts

GlobalVariables.cs
Contains global variables used for determining sizes of objects in the simulation

LinearTransformation.cs
Contains functions for linear transformation (x-axis and y-axis rotation)

KeyboardController.cs
Contains functions for controlling the simulation via KeyInput

  • Space : Pause/resume
  • Alpha1 : Standard x,y,z mode
  • Alpha2 : r,z mode
  • Alpha3 : Manual control mode via arrow keys

DiskRendererScript.cs
You don't want to know.

MerryGoRound.cs
Script for spinning camera about the set-up.

Scripts for line rendering LineRendererDrawers

AxisXDrawer.cs, AxisYDrawer.cs, AxisZDrawer.cs
Draws the lines for the x, y and z axes.

RingDrawer.cs
Draws a ring around the location of GameObject RingPlaceholder.

Scripts for drawing vectors

RadialVectorDrawer.cs
Draws a line from the ring to the moving ball object.

ResultantVectorDrawer.cs
Draws a arrow extending from the moving ball object. Represent resultant electric field vector from a particular point in the ring.

XComponentDrawer.cs, YComponentDrawer.cs, ZComponentDrawer.cs
Draws the x, y and z components of the resultant vector.

RComponentDrawer.cs
Draws the r component of the resultant vector. Replaces the x and y components.

Scripts for movement Movement

BitchBall.cs
Follows PointBitchMaster, which is being controlled via LeapMotion. EasterEgg for free SHIRTS

BitchBallSpecial.cs
Follows along the side PointBitchMaster. Used in PointAxisX, PointAxisY and PointAxisZ for placement of axes.

Palpatine mode

All objects for Palpatine mode are placed in the LightningBolt folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.