Caller-owned Pcg vehicle orbit-camera setup and input adapter. 更多...
#include <PcgCarCameraSetup.h>
Public 成员函数 | |
| Result< void > | configure (const PcgCarCameraProfile &profile) |
| Validate and copy a complete profile without partial mutation. | |
| Result< void > | apply (CameraController *controller, graphics::Camera3D *camera, scene::SceneNodeRef *focus, float initialYaw, float initialPitch) |
| Apply the profile to a live native controller and its stable target. | |
| Result< void > | update (CameraController *controller, float mouseX, float mouseY, float scroll, float dt, bool targetIsMoving, float targetYaw) |
| Apply one device-independent mouse/scroll frame. | |
| const PcgCarCameraProfile & | getProfile () const noexcept |
| Return the copied profile. | |
| float | getYaw () const noexcept |
| Return current orbit yaw. | |
| float | getPitch () const noexcept |
| Return current orbit pitch. | |
详细描述
Caller-owned Pcg vehicle orbit-camera setup and input adapter.
在文件 PcgCarCameraSetup.h 第 35 行定义.
成员函数说明
◆ apply()
| Result< void > eve::camera::PcgCarCameraSetup::apply | ( | CameraController * | controller, |
| graphics::Camera3D * | camera, | ||
| scene::SceneNodeRef * | focus, | ||
| float | initialYaw, | ||
| float | initialPitch | ||
| ) |
Apply the profile to a live native controller and its stable target.
在文件 PcgCarCameraSetup.cpp 第 39 行定义.
引用了 c, camera, eve::camera::PcgCarCameraProfile::collisionLayers, configure(), eve::camera::PcgCarCameraProfile::distance, eve::Diagnostic::error(), eve::Result< T >::failure(), finite, eve::InvalidArgument, limits, eve::camera::PcgCarCameraProfile::maximumDistance, eve::camera::PcgCarCameraProfile::maximumPitch, eve::camera::PcgCarCameraProfile::minimumDistance, eve::camera::PcgCarCameraProfile::minimumPitch, eve::camera::PcgCarCameraProfile::offsetFromWall, eve::camera::PcgCarCameraProfile::rotationDamping, eve::Result< T >::success(), eve::camera::PcgCarCameraProfile::targetHeight , 以及 eve::camera::PcgCarCameraProfile::zoomDamping.
◆ configure()
| Result< void > eve::camera::PcgCarCameraSetup::configure | ( | const PcgCarCameraProfile & | profile | ) |
Validate and copy a complete profile without partial mutation.
在文件 PcgCarCameraSetup.cpp 第 23 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), finite, eve::InvalidArgument, p , 以及 eve::Result< T >::success().
被这些函数引用 apply() , 以及 eve::camera::exposePcgCarCameraSetupBindings().
◆ getPitch()
|
inlinenoexcept |
Return current orbit pitch.
在文件 PcgCarCameraSetup.h 第 48 行定义.
◆ getProfile()
|
inlinenoexcept |
Return the copied profile.
在文件 PcgCarCameraSetup.h 第 46 行定义.
◆ getYaw()
|
inlinenoexcept |
Return current orbit yaw.
在文件 PcgCarCameraSetup.h 第 47 行定义.
◆ update()
| Result< void > eve::camera::PcgCarCameraSetup::update | ( | CameraController * | controller, |
| float | mouseX, | ||
| float | mouseY, | ||
| float | scroll, | ||
| float | dt, | ||
| bool | targetIsMoving, | ||
| float | targetYaw | ||
| ) |
Apply one device-independent mouse/scroll frame.
在文件 PcgCarCameraSetup.cpp 第 67 行定义.
引用了 eve::camera::PcgCarCameraProfile::allowMouseHorizontal, eve::camera::PcgCarCameraProfile::allowMouseVertical, blend, c, eve::Diagnostic::error(), eve::Result< T >::failure(), finite, eve::camera::PcgCarCameraProfile::horizontalSpeed, eve::InvalidArgument, eve::camera::PcgCarCameraProfile::lockToRearOfTarget, eve::camera::PcgCarCameraProfile::maximumPitch, eve::camera::PcgCarCameraProfile::minimumPitch, eve::camera::PcgCarCameraProfile::rotationDamping, eve::Result< T >::success(), eve::camera::PcgCarCameraProfile::verticalSpeed , 以及 eve::camera::PcgCarCameraProfile::zoomRate.
该类的文档由以下文件生成:
- src/modules/camera/PcgCarCameraSetup.h
- src/modules/camera/PcgCarCameraSetup.cpp