kfarr / aframe-city-builder

🏗️ A-Frame project demonstrating touch controls for building a VR city scene
https://aframe.city
MIT License
87 stars 37 forks source link

add erase action #14

Closed kfarr closed 7 years ago

kfarr commented 7 years ago

Similar to tilt brush, it would be nice to be able to delete previously placed objects. Right now the only way to do that is with undo squeezing the grip buttons.

Right now there is an icon on the action menu but it doesn't do anything: https://github.com/kfarr/aframe-city-builder/blob/master/assets/environment/icon_erase.png

It could be very similar to tilt brush: objects touching the erasing object (this could be a glowing red orb or a voxel image of a bulldozer or...) simply disappear.

kfarr commented 7 years ago

use raycaster?

kfarr commented 7 years ago

done as part of https://github.com/kfarr/aframe-city-builder/commit/84f5a2c4f74aa9a0aeba6544768f68e273729942

could use highlight on hover but that's separate request