fix: camera movement #1

Merged
pupbrained merged 1 commit from avery/vulkan-test:vk-hpp into vk-hpp 2024-11-06 22:28:07 -05:00
Contributor

cross product calculations must include two directional vectors, an origin vector is not valid.

have replaced front with a calculated directional vector to the look_at point (origin by default)

gives the effect of speeding up or slowing down the rotation of the object when moving left or right, because the camera is moving at a different speed around the same point

cross product calculations must include two directional vectors, an origin vector is not valid. have replaced `front` with a calculated directional vector to the `look_at` point (origin by default) gives the effect of speeding up or slowing down the rotation of the object when moving left or right, because the camera is moving at a different speed around the same point
avery added 1 commit 2024-11-06 21:12:45 -05:00
avery changed title from fix camera movement to fix: camera movement 2024-11-06 21:21:03 -05:00
Author
Contributor

in future, you will probably want to replace the entire "look at" functionality with a camera rotation

for this, will need to store an initial front directional vector like before, with the default way you want the camera to be facing, and then substitute (look_at - position) with that initial front vector, with your current camera rotation applied to it

in future, you will probably want to replace the entire "look at" functionality with a camera rotation for this, will need to store an initial `front` directional vector like before, with the default way you want the camera to be facing, and then substitute `(look_at - position)` with that initial `front` vector, with your current camera rotation applied to it
pupbrained merged commit 769dd30fdd into vk-hpp 2024-11-06 22:28:07 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pupbrained/vulkan-test#1
No description provided.