mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

Remove Field/Block #111

Closed mattrdowney closed 5 years ago

mattrdowney commented 5 years ago

Removing field makes sense, Block at first glance might seem weird.

Principle idea: blocks will eventually just be collisions, Fields were already obsolete

Design specifications:

PlanetariaCache needs to get rid of LogError case when PlanetariaCollider isn't found in cache (instead, add it at runtime).

PlanetariaCollider needs a Shape as input (only hard question - do I combine colliders into one? I argue yes but that adds layered complexity).

Concavity can be checked through Shape to do optimization for 1) single circles/spheres 2) convex objects.

No real distinction between field and block (which means more flexible and agnostic code in the future).

mattrdowney commented 5 years ago

Ignoring bugs from Platformer example project (inevitable), this is done as of edbb47ded77957f1519f88a4afdc88142d2e267e