maine-imre / handwaver

A gesture-based mathematical making environment from the University of Maine
http://www.imrelab.org
8 stars 2 forks source link

Bugfix/anchorable prefabs (#65) #76

Closed nsgnn closed 5 years ago

nsgnn commented 5 years ago

Also reimported all to allow for asset preview within unity

Points and Line Segments

Instantiate from prefabs now.

Changed system to entirely MGO references from transform. Changed system to initialize figure entirely within that function call. temperately? changed system to init a figure if not done on time.

For Interactable Prisms

For Interactable Prisms EDIT: compile errors fixed

Stashing resources into a reference list and using that rather than repeated Resource.Load calls. Some old prefabs have been removed as well. All References to Resources.Load(" have been replaced with PrefabManager.Spawn("

It seemed to be an issue with racing, so I cleaned up the construction.

New theory - base initialize figure isn't being called consistenly.

The problem was in the select gesture activating while stretching.

This will be resolved with a new gesture system and a new kernel.

For the short term, a try catch is used for the normal of a polygon.

There are some issues with the control panels and with the sun and moon positions and materials. Noted in github issues.

Update Unity to new Version.

Restore Arctus to tool panel.

Using outdated code - turns out that's not a good plan.

Updated with the GeoObjConstruct call.

Made some prefab changes to keep up to date.

The arctus now works as desired, however I've discovered another bug - the prefab manager will spawn two objects for any one call. This leaves the duplicates as "zombies" sitting in the floor. The "zombie" objects never get to the GeoObjManager

Turns out Instantiate(Instaniate(Prefab)) is a bad plan.

Prefab patches.

Fix spelling error

Attempt to fix selection color.

hopefully this fixes color problems.

Remove random color feature. Colors are assigned centrally to MasterGeoObj.

Remove debug.log calls that aren't necessary. These calls were used for debugging only.

Remove unneeded Debug.log

Added docs

added TODO comment

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: