-
So what i'm trying to do is get my camera and light source to rotate around the 3D model to give an illusion of motion to the object since i couldnt get the logo to rotate around its own center. Maybe i'm making this too complicated since i already wrote code that compiles? i might as well keep going in this direction. If there is a solution for the original approach i'm all ears. but if someone could tell me what im doing wrong with this approach thatd be great too.
note: sorry the formatting sucks. i hate this implementation why cant they just use html? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
To fix the formatting I think you need to wrap everything in: Regarding your question, for the hierarchy to work properly, the parent and all children need to have all components from the |
Beta Was this translation helpful? Give feedback.
To fix the formatting I think you need to wrap everything in:
```rust
your code
```
Regarding your question, for the hierarchy to work properly, the parent and all children need to have all components from the
SpatialBundle
(meaningTransform
,GlobalTransform
,Visibility
,ComputedVisibility
). TheCamera3dBundle
doesn't haveVisibility
andComputedVisibility
, so you need to add those manually to the entity with that component (together they form theVisibilityBundle
, to insert both in one go). I think this should fix it.