aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.69k stars 3.98k forks source link

[CLOSED] Add "look at" functionality #577

Closed ngokevin closed 8 years ago

ngokevin commented 8 years ago

Issue by jcarpenter Friday Oct 23, 2015 at 21:00 GMT Originally opened as https://github.com/aframevr/aframe-core/issues/317


Enables devs to tell objects to "look at" another object. This is common and extremely useful. Implementation could be via component, with something like:

<a-kitten lookat="target: bird">

Example from Cinema 4D's implementation is as follows:

https://dl.dropboxusercontent.com/u/667711/mockups/target-example.mov

ngokevin commented 8 years ago

Comment by cvan Monday Oct 26, 2015 at 22:53 GMT


Also see http://threejs.org/examples/#misc_lookat

ngokevin commented 8 years ago

Comment by jcarpenter Wednesday Nov 11, 2015 at 01:41 GMT


This would also be relevant for particles.

ngokevin commented 8 years ago

Comment by ngokevin Friday Nov 20, 2015 at 08:33 GMT


https://github.com/MozVR/aframe-core/pull/479

ngokevin commented 8 years ago

Comment by ngokevin Friday Nov 20, 2015 at 08:38 GMT


Related topic: up vectors. Probably can be a separate component later on.