Replies: 2 comments
-
Since you're using a tag and you have a single camera from what I get, you can do something like this: auto entity = registry.view<Camera3DComponent>().front();` However, I wouldn't create a whole storage for a single element. Instead, you can store |
Beta Was this translation helpful? Give feedback.
0 replies
-
@skypjack thank you sir! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
this is my scene :
this is what inside render system for newEntity2 :
i want to get the cameraEntity. how to do that? is this possible with entt?
i also create a camera3DSystem for newEntity. this system handling movement. it works by changing the transform3DComponent position values.
Beta Was this translation helpful? Give feedback.
All reactions