The interface inherited from NativeScriptComponent, which is called on this attached to an entity. We get the camera we want control here. We get the camera transform component here.
Reimplemented from Spices::NativeScriptComponent.
Definition at line 18 of file CameraController.cpp.
19 {
21
24 m_Camera = entity.GetComponent<CameraComponent>().GetCamera();
25 }
#define SPICES_PROFILE_ZONE
std::shared_ptr< Camera > m_Camera
The camera smart pointer get from owner's camera component.
TransformComponent * m_CameraTranComp
The camera transform component pointer get from owner's transform component.
entt::entity m_Owner
This component's Owner entity.
static FrameInfo & Get()
Get FrameInfo.
References m_CameraTranComp.