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

ArcEditor: Arc snap #65

Closed mattrdowney closed 6 years ago

mattrdowney commented 6 years ago

Should be a simple feature. Most useful for defining hexagonal doors.

Possible implementation:

foreach Arc in scene: get tuple of points (left boundary + right boundary + position(position_to_angle(unclamped))) and find the closes point to unclamped point

Extra considerations: find slope for use in doorway generation.

mattrdowney commented 6 years ago

(Both vertex snap with "v" and edge snap with Shift and Control.)

mattrdowney commented 6 years ago

Done as of 2195db360a0554cfe1ceb3e3495b06ac35d230b2