mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-29 01:01:31 +00:00
Camera: front-camera transform and focus changes
Compute a more accurate front (selfie) camera transform and adjust front-camera params (FOV, distance, height). Replace apply_rear_camera_view with a unified apply_camera_view that selects the correct view_mode for ped/vehicle. Add block-look support to SkyPhoneFocus (Resolve now returns block_look) and make ApplyGameInputControls accept a block_look flag; main.lua tracks phone_block_look and passes it when disabling controls. Update related tests to reflect new camera math and input behavior.
This commit is contained in:
@@ -113,11 +113,11 @@ assert(response_from("camera:setFacing", { front = true }).success)
|
||||
assert(camera_created and scripted_camera_rendering, "selfie mode must render a scripted camera")
|
||||
assert(camera_coord and camera_target, "selfie mode must position and aim the camera")
|
||||
assert(close_enough(camera_coord.x, 10.0))
|
||||
assert(close_enough(camera_coord.y, 21.45))
|
||||
assert(close_enough(camera_coord.z, 2.76))
|
||||
assert(close_enough(camera_coord.y, 21.05))
|
||||
assert(close_enough(camera_coord.z, 2.75))
|
||||
assert(close_enough(camera_target.x, 10.0))
|
||||
assert(close_enough(camera_target.y, 20.0))
|
||||
assert(close_enough(camera_target.z, 2.6))
|
||||
assert(close_enough(camera_target.z, 2.73))
|
||||
|
||||
assert(response_from("camera:setFacing", { front = false }).success)
|
||||
assert(camera_destroyed and not scripted_camera_rendering, "rear mode must release the selfie camera")
|
||||
|
||||
Reference in New Issue
Block a user