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

Three-Sphere collision system #28

Closed mattrdowney closed 6 years ago

mattrdowney commented 6 years ago

The intersection of two spheres is a circle, then you just need to do arc checking.

PlanetariaCache will need to be augmented, and collision checks will all need to be deferred to WaitForFixedUpdate for PlanetariaActor.

mattrdowney commented 6 years ago

By using three spheres, the collisions can be limited to just an arc (for most--if not all--arcs on the surface of a sphere).

mattrdowney commented 6 years ago

A specialized implementation of #29

mattrdowney commented 6 years ago

Finished as of 54f976f9fad5fa0a153604119d932f13e87361b8

mattrdowney commented 6 years ago

Extra changes and bugfixes mostly finished as of e004c2c154100f8ebd0641a757d937603b55cbad

Going to do an extra refactoring step immediately

mattrdowney commented 6 years ago

Finished as of 9282d5ac35c1b7baaf51e2da840ac705f7625890