Commit Graph

104 Commits

Author SHA1 Message Date
Xevion
930b1aec46 fix NullReferenceExceptions with focused boids during maximized play
during maximized play, focusing a Boid would cause NullReferenceExceptions as there was no active SceneView in the Unity Editor. Thus, without a SceneView, attempting to acquire one would return null. No test was done prior to acting on the Nullable return.
2020-11-02 12:15:57 -06:00
Xevion
fe79a5ff5e AdjustmentsHandler AddBoids useNearby check, move all rules into GetVelocity method to try pre simulating new boids (failed), Wrapping docs, buggy GetClosestBoid, new TimeScale slider! 2020-06-06 07:12:59 -05:00
Xevion
0a44ee58ed RandomNearbyPosition for spawning non-startup boids near eachother (needs pre-simulation!) new Boid.GetNearby func, fix Debug import, change UIController AdjustmentsPanel delay, AddBoids docs 2020-06-06 05:49:59 -05:00
Xevion
1aeb7d2c23 remove unnessecary SerializeField and NonSerializable attributes, improving comments/documentation 2020-06-06 05:17:45 -05:00
Xevion
dadb6323cc adjust boundary forces and boundary dimensions 2020-06-06 04:59:45 -05:00
Xevion
a6df99bb79 remove start velocity and using random velocity within given limits, adjust default BoidController values 2020-06-06 01:24:53 -05:00
Xevion
b9dbf5a124 remove BoidController width/vertex attributes 2020-06-06 01:17:47 -05:00
Xevion
f5bfa7ace8 rename fov vars, add documentation & better comements to BoidController class, fix BoidControllerEditor redraw and implement circle/arc vertex/width attributes (no serialization with static class) 2020-06-06 01:17:19 -05:00
Xevion
7e561c7ea2 Merge branch 'master' of github.com:Xevion/Boids
 Conflicts:
	Boids/Assets/Resources/Icons/banner.psd.meta
2020-06-05 22:05:38 -05:00
Xevion
56406c6b30 Add banner.psd.meta file 2020-06-05 22:04:34 -05:00
Xevion
4ddc7fe2d4 Merge pull request #22 from Xevion/fov-detection
FOV Detection and Arc Drawing
2020-06-05 21:48:43 -05:00
Xevion
cddacb0efa remove TimeScale, fix DisableFocusing concerning LineRenderer array 2020-06-05 21:44:10 -05:00
Xevion
7bc306a7f6 use DestroyImmediate to fix pause Boid FOV edits creating duplicate LineRenderers, fix arc calculations and rotate correctly, FOV arc finally 'fixed' properly (again), fix XML docs/comments 2020-06-05 20:56:13 -05:00
Xevion
92d1e3efef reset circle/arc/ width/vertexcount with shapedraw, timescale edit, new static array LineRenderers, finished arc drawing base 2020-06-05 19:15:54 -05:00
Xevion
1188a75d9e new GetLineRenderer method, port DrawCircle code 2020-06-05 18:28:44 -05:00
Xevion
4b10722a48 move arc drawing code into ShapeDraw, remove vertex count argument 2020-06-05 18:16:25 -05:00
Xevion
a79daf7ed7 ShapeDraw utility class to split draw logic 2020-06-05 18:09:35 -05:00
Xevion
d3f213717f use LookAtDirect for no lag SceneView updates, draw dotted line between latest detected neighbors, velocity display in inspector GUI, ready arc vertex inspector GUI CustomEditor 2020-06-05 17:59:05 -05:00
Xevion
f6dd8f6c2a update Boid velocity to angle and angle difference methods for FOV detection, finished working FOV detection 2020-06-05 17:53:55 -05:00
Xevion
8ee9f33082 transform sceneview to focus on specific boid when one is focused, allow size change, use orthographic rot 2020-06-04 23:06:28 -05:00
Xevion
e6ec6a3942 small comment edit 2020-06-04 22:51:32 -05:00
Xevion
049879522a banner psd meta file, assembly csharp editor dot csproj settings (unversioned file updates) 2020-05-28 23:00:26 -05:00
Xevion
37b54ded30 moved BoidEditor/BoidControllerEditor scripts away for proper Build procedure (no macro) 2020-05-28 22:59:50 -05:00
Xevion
8e976e3196 private isFocused, remove _renderers, remove unused DirectionFromAngle, make Draw's redraw arg explicit 2020-05-28 08:36:04 -05:00
Xevion
25a47d9af5 Move BoidControllerEditor.cs into Editor folder, Add BUGS.md 2020-05-28 08:32:40 -05:00
Xevion
55dec29413 add better redraw checks for EditorGUI, add build macro (CustomEditor needed), remove target frame rate 2020-05-27 22:59:24 -05:00
Xevion
303e846e0f add checks for group/sep/fov checks to recreate LineRenderers 2020-05-27 20:05:26 -05:00
Xevion
30dd4a1100 add separate draw (optional redraw) method, new drawArc and drawArcCenetered methods for FOV 2020-05-27 19:36:07 -05:00
Xevion
784d498a52 neighbor count label gizmo, attempt at arc FOV gizmo, make min/max speed sliders into single min/max slider 2020-05-27 19:18:05 -05:00
Xevion
74ddf684a9 implemented FOV checks, back to foreach loop, BoidController sliders 2020-05-27 10:45:41 -05:00
Xevion
a09d5f5028 Merge pull request #19 from Xevion/algorithm-improvements
Algorithm Improvements
2020-05-27 09:14:26 -05:00
Xevion
1941534360 increase boundary/steering force limits, update inspector slider max values 2020-05-27 01:54:50 -05:00
Xevion
f8e2a7edfe tweaked algorithm values, fixed centering velocity breaking wrapping erratically due to improperly scaled velocities 2020-05-27 01:24:00 -05:00
Xevion
2ed2fa1116 implement seblague's acceleration based formulas, may require tweaking 2020-05-25 13:18:16 -05:00
Xevion
c6556338cd implement seblague's acceleration based formulas, requires tweaking 2020-05-25 09:45:21 -05:00
Xevion
6db341cd6a Merge pull request #17 from Xevion/hide-menu
PlayHidden Menu
2020-05-25 09:28:54 -05:00
Xevion
1fc3e01bbc implement PlayHidden menu for unobstructed view 2020-05-25 09:24:27 -05:00
Xevion
a050e30159 update README with disclaimer 2020-05-23 04:56:45 -05:00
Xevion
fb8e903967 update README and add banner psd/jpeg for repo 2020-05-23 04:51:29 -05:00
Xevion
2fea2406bb update project settings with new psd icon 2020-05-23 04:28:28 -05:00
Xevion
4c43a5287f add target framerate of 90fps, move Graphy module to top left 2020-05-23 03:24:02 -05:00
Xevion
8343af22a8 implemented toggle title screen boid rendering (tween based method commented out until fix located) 2020-05-23 03:18:59 -05:00
Xevion
ec48b1386f update .gitignore with asset folder meta blocks, remove LeanTween/TMP asset folder metafiles 2020-05-23 02:32:57 -05:00
Xevion
8165896a68 restructured label/toggles hierarchy to allow child component getter, implemented toggle component & simple callbacks 2020-05-23 02:30:49 -05:00
Xevion
1cc1e20962 new AdjustmentsHandler.cs for working with sliders/toggles 2020-05-23 02:24:42 -05:00
Xevion
1d275a4164 update project to include Graphy asset, add adjustments panel close button and tweak sliders to near perfection, small formatting/doc changes to UIController.cs 2020-05-23 02:23:56 -05:00
Xevion
e7fbc7c6f1 .gitignore update for Tayx/Graphy 2020-05-23 02:22:36 -05:00
Xevion
5a8ead9bf3 renamed UILock to align with property naming conventions, add docs for UIStance/UIGroup enums, predict more UIStance items (rename Play to PlayAdjust) 2020-05-23 00:17:19 -05:00
Xevion
26031f4870 improve documentation in UIController.cs 2020-05-22 23:55:56 -05:00
Xevion
b2801d8009 add documentation to large methods in UIController.cs, refactor ChangeStance with smarter, simpler if-statements 2020-05-22 23:13:47 -05:00