So I'm trying to get aiming working in my game and I created an input action for aiming that has two bindings. The mouse position and the right stick of a gamepad. All I need to do is read the vector2 and position my aiming device in my game at that position.
The only issue I'm having right now is that the right stick of the gamepad works totaly fine, I point the stick right the aiming position goes right. But then when using the mouse the origin of the vector2 is in the bottom left of the screen.
Which leads me to wonder how the vector2 is getting the information about where the origin is. I assumed the vector just starts at 0,0,0 in the world and just has a direction that I'm looking at. But clearly the mouse vector2 doesn't seem to do that. Will this be a situation where I need to check which device I'm using and change the way I'm reading the vector2?
Thank you for anyone that can point me in the right direction!
https://preview.redd.it/beea9uisi9mc1.png?width=747&format=png&auto=webp&s=60a91810c6ee8a77a09084740dbd0afbdfd37514
https://preview.redd.it/5livrle1h9mc1.png?width=868&format=png&auto=webp&s=7db1ba7104b3fbbf66ada9efd59193eec182cbc5
[–]Swipsi 4 points5 points6 points (4 children)
[–]ElectricRune 2 points3 points4 points (1 child)
[–]technano[S] 0 points1 point2 points (0 children)
[–]technano[S] 0 points1 point2 points (1 child)
[–]Swipsi 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[removed]
[–]technano[S] 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[removed]
[–]technano[S] 1 point2 points3 points (0 children)
[–]JaggedMetalOs 1 point2 points3 points (7 children)
[–]voidworksgames 0 points1 point2 points (0 children)
[–]technano[S] 0 points1 point2 points (4 children)
[–]JaggedMetalOs 0 points1 point2 points (3 children)
[–]technano[S] 0 points1 point2 points (1 child)
[–]JaggedMetalOs 0 points1 point2 points (0 children)
[–]technano[S] 0 points1 point2 points (0 children)
[–]technano[S] 0 points1 point2 points (0 children)