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
Contains global variables used for determining sizes of objects in the simulation
Contains functions for linear transformation (x-axis and y-axis rotation)
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
You don’t want to know.
Script for spinning camera about the set-up.
Scripts for line rendering
AxisXDrawer.cs, AxisYDrawer.cs, AxisZDrawer.cs
Draws the lines for the x, y and z axes.
Draws a ring around the location of GameObject
Scripts for drawing vectors
Draws a line from the ring to the moving ball object.
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.
Draws the r component of the resultant vector. Replaces the x and y components.
Scripts for movement
PointBitchMaster, which is being controlled via LeapMotion.
Follows along the side
PointBitchMaster. Used in
PointAxisZ for placement of axes.
All objects for Palpatine mode are placed in the LightningBolt folder.