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
.
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.
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
.
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.
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.
All objects for Palpatine mode are placed in the LightningBolt folder.