aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
655 stars 203 forks source link

Camera inside another component #385

Closed jacqueslelezard closed 7 years ago

jacqueslelezard commented 8 years ago

Hi, I'm trying to make the following structure work:

          <a-entity wasd-controls="acceleration:75; easing:1; fly: true">
                <a-entity camera look-controls>
                </a-entity>
                <a-collada-model 
                                 src="#spacecraft"
                                 position="0 0 0"
                                 rotation="0 0 0">
                </a-collada-model>
            </a-entity>

The first a-entity is the main bloc the user control with his keyboard, the camera should move with it but let the user look around, the collada model should also move but shouldn't follow the camera direction. Any idea why the camera doesn't work in this configuration ?

ngokevin commented 8 years ago

Which part doesn't work?

fernandojsg commented 8 years ago

@jacqueslelezard probably you want to include de model as a child of the camera entity?

jacqueslelezard commented 8 years ago

When I put the camera inside another entity it doesn't display anything (using aframe 0.3.0). I'll post the complete sample in the afternoon. (and to be more accurate I want to move the camera and the model together, but allow the user to look around while the model stay static).

fernandojsg commented 7 years ago

I believe this is not related to the inspector but aframe itself? Do you mind posting it on stackoverflow? Thanks! I'm closing it

jacqueslelezard commented 7 years ago

@fernandojsg Ah you are right, it's aframe itself, sorry I'll put this on stackoverflow as you suggested

fernandojsg commented 7 years ago

@jacqueslelezard cool, thanks!