This might sound a bit dumb, but I'm just fiddling around with Blitz3D and don't really know much :)
I have a landscape working and I can run around it with the keyboard, but I want to use the mouse to 'point' at where I'm going, both left and right and up and down. The up/down movement seems fine, but when I move left and right, it DOES move left/right but it also tilts the camera. Why? I thought yaw movement would only swivel left/right.
Here's the code I'm using.
TurnEntity camera, 0, -MouseXSpeed() ,0
TurnEntity camera, MouseYSpeed() ,0, 0
; Centre mouse.
MoveMouse GraphicsWidth()/2,GraphicsHeight()/2
I assume I'm doing something really dumb :)
I have a landscape working and I can run around it with the keyboard, but I want to use the mouse to 'point' at where I'm going, both left and right and up and down. The up/down movement seems fine, but when I move left and right, it DOES move left/right but it also tilts the camera. Why? I thought yaw movement would only swivel left/right.
Here's the code I'm using.
TurnEntity camera, 0, -MouseXSpeed() ,0
TurnEntity camera, MouseYSpeed() ,0, 0
; Centre mouse.
MoveMouse GraphicsWidth()/2,GraphicsHeight()/2
I assume I'm doing something really dumb :)