Page 3 of 5
Re: "A FPS Game" Online Game
Posted: Wed Jan 28, 2009 3:45 pm
by M_D_K
<= is less than or equal...duh
x_delta, etc is just the difference. you kinda need to know it.
Also your update position code must be fucked if setting velocity to 0 doesn't work. I'll look at it later.
Re: "A FPS Game" Online Game
Posted: Wed Jan 28, 2009 4:17 pm
by LeonBlade
Lol... yeah...
Re: "A FPS Game" Online Game
Posted: Wed Jan 28, 2009 6:30 pm
by MarauderIIC
"delta" is the greek letter for change. So "delta x" is change in x, "delta r" is change in radius, so on and so forth.
Re: "A FPS Game" Online Game
Posted: Wed Jan 28, 2009 6:45 pm
by LeonBlade
Thanks
Re: "A FPS Game" Online Game
Posted: Wed Jan 28, 2009 9:03 pm
by Aeolus
lol why'd you ask what <= was lol
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 2:19 am
by LeonBlade
I didn't see an if statement or anything...
How do you return an operator?
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 3:18 am
by M_D_K
Your not. r_delta<=(radiusA + radiusB) is the same as:
Code: Select all
bool ret = (bool)(r_delta<=(radiusA + radiusB));
return ret;
your returning a boolean.
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 5:20 am
by Ginto8
LeonBlade wrote:I didn't see an if statement or anything...
How do you return an operator?
All the comparison operators return a boolean value.
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 11:51 am
by LeonBlade
Oh... I didn't know that LOL
Thanks guys
I'll be getting my computer soon
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 2:24 pm
by MarauderIIC
Operators are essentially functions that are called in a certain way (so that they're easier to read and make sense). Overload an operator sometime.
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 3:37 pm
by LeonBlade
LOL @ My quote in your sig (I've seen it for a while)
I'm supposed to get my computer on Saturday
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 6:20 pm
by Aeolus
Haha you made a Marauder quote. Thats bad.
Which computer are you typing from?
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 6:35 pm
by M_D_K
Hes using his PS3
Re: "A FPS Game" Online Game
Posted: Thu Jan 29, 2009 7:54 pm
by LeonBlade
M_D_K wrote:Hes using his PS3
You remembered
Re: "A FPS Game" Online Game
Posted: Sun Feb 01, 2009 1:09 am
by LeonBlade
Alright... this is starting to get annoying...
The collision isn't working, and it seems that nobody has any tutorials on collision for 3D, only for 2D...
I tried what M_D_K said (after a lot of debuging lol) and it still doesn't work...