Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Starting My Camera Movement

Author
Message
Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 20th Aug 2010 21:01 Edited at: 20th Aug 2010 21:18
ok, when i compile the code, i notice the cube is very glitchy in its movement,

im thinking its 1 of 3 things:
A. i used floats for movement speed
B. The camera is the glitchy problem
C. The cube is the glitchy problem

but i cant seem to figure it out.




[edit]
ok so i realized the problem, but i dont know what to do about it,
its because the camera doesnt move in float value, so the camera moves half as much as the cube, so the cube moves twice(.5) and the camera *glitches* behind it at a rate of (1) but it still wants to keep up with the cube.

Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 20th Aug 2010 21:26
Okay, I'm an idiot. All I had to do was change the cam x,y,z to float before the loop and just set it to 0.0, then it can be the exact same value as the cube

KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 20th Aug 2010 22:41
Like many of us, you'll find that the answer is right there in front of you, but sometimes you don't see it until you try and describe the problem to someone else. Then it suddenly hits you.

Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 20th Aug 2010 22:52
Exactly

Login to post a reply

Server time is: 2024-09-28 20:20:12
Your offset time is: 2024-09-28 20:20:12