fix: camera movement #1
Loading…
Reference in a new issue
No description provided.
Delete branch "avery/vulkan-test:vk-hpp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cross product calculations must include two directional vectors, an origin vector is not valid.
have replaced
front
with a calculated directional vector to thelook_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
fix camera movementto fix: camera movementin 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 initialfront
vector, with your current camera rotation applied to it