EM Pull Request to Seaquark Branch - #1
Open
Whoose-Joe wants to merge 17 commits into
Open
Conversation
Add files via upload
Covers electric charge, EM field calculation, quark and seaquark changes, WIP information, and more
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added:
Electric Charge
All quarks have a charge of +2/3 or -1/3
Values used for EM field calculations if isCharged enabled, otherwise object can only read values (ex: force probes)
TypeQuark Class
All quarks or objects that either read/write from EM fields can be an extension of this class
Includes charge states, force lines, and quark materials
EM Fields
Calculated from charged TypeQuark
TODO: Add static fields
Can be disabled from proton during/before runtime
See README for details on variables
Centripetal Force
1/r force applied to all TypeQuark
Can be modified from in-game menu
Sea Quark Spawn Changes
Proton requires energy to spawn sea quarks
Creating new pair reduces energy by 1, deleting increases by 1
Autodeletes when pair distance from proton > 100
Autodeletes when quark/antiquark collide (Distance modified from cancelThreshold variable)
Simple Parton Sum Rule (WIP)
Iteratively sets spin values for each TypeQuark (up or down)
TODO: Only works along z-axis, not yet scaled, sums to 0 instead of 1/2
See README for details on calculation and console information
Visuals
Added force lines, FPS counter
Quark visuals moved to TypeQuark
Music
Added music player, new track
Disabled by default, enable by checking autoplay from Music object in Heirarchy