My 3rd person camera code thread
Blitz3D Forums/Blitz3D Programming/My 3rd person camera code thread
| ||
Hi all. I'm having a problem with my camera code. Primarily that it doesn't function as close to the camera in the below video as possible. Can someone make it so that the camera code I have provided below, works exactly, or as close to the camera in the below video, as possible? Here's the code: Here's a video of the type of camera I am trying to achieve: http://www.youtube.com/watch?v=LY1MEFS2_G0 Thanks to all that help! :) Last edited 2012 |
| ||
Yet another video blocked in the UK due to some random song pasted over it for no real reason other than "This song Rawks!" |
| ||
I didn't know it was blocked. lemme find a different one... -.- |
| ||
Here, sorry for the inconvinience. http://www.youtube.com/watch?v=-ALGylwsR7k&feature=related |
| ||
- Create a pivot - Parent the camera to the pivot - In your main loop, position the pivot with the player - While mouse(2) is down -- Rotate the pivot on the x axis with your mouse -- Rotate the player on the y axis with your mouse - While mouse(2) is not down -- regular chasecam mode Use this for your regular chasecam. http://blitzmax.com/codearcs/codearcs.php?code=1083 Last edited 2012 |
| ||
Thanks, stayne. here's what I got so far: I'm stuck on the x-axis pivot part, other than that, i think i pulled it off :) |
| ||
Anyone? Here's what I got so far: Thanks to all that help me! :) Last edited 2012 |
| ||
Almost there. Do you want it so only when you hold mouse 2 the camera works? Not sure if you are going to have a GUI or not. |
| ||
Yes plz :) Thanks, Stayne :) |
| ||
Here you go dude. Quick and dirty (didn't set pitch limits) but you'll get the idea. |
| ||
Hey, thanks stayne. Could you make it so that when I use my mouse to rotate the player, that the rotation speed is the same speed as the speed i am rotating the player with, with my mouse? Also, can u make it so that no matter how fast my player is going, the chasecam doesnt try to "pull in front" of the player, and act like it's get gimbal lock? Thanks, stayne! :) Last edited 2012 |