The Police
by Quentin Headen · in Torque Game Engine · 06/26/2006 (9:18 pm) · 8 replies
I wanted to make a racing game with the police in it. I want to know how can make the cop car chase you if you are going to fast or if you pass it. Please give me this info.
Thank you.
Thank you.
About the author
Just your average programmer who tries to finish the projects he starts. :) I am currently focused on creating games with Torque engines. My website is http://phaseshiftsoftware.com
#2
That wasn't very nice, was it? He's just asking for information and that's what forums about isn't it?
Chill dude :-)
Quentin:
(I'm not an expert in this area, I only know what I would have done in your place.)
You probably want to learn more about AI programming to solve this issue.
There are some resources on GG that might help, they mostly are based
on characters rather than cars (I'm assuming the police will be in a car or vehicle of some kind)
but the steps should be similar (sense the driver, "poke" it for velosity and follow it's "path").
I'd look at Killer Kork, an ai bot, because it looks like a great resource, but there might be
other resources that fits better (search for path finder, AI, sensing for instance).
07/11/2006 (9:25 am)
Anthony: That wasn't very nice, was it? He's just asking for information and that's what forums about isn't it?
Chill dude :-)
Quentin:
(I'm not an expert in this area, I only know what I would have done in your place.)
You probably want to learn more about AI programming to solve this issue.
There are some resources on GG that might help, they mostly are based
on characters rather than cars (I'm assuming the police will be in a car or vehicle of some kind)
but the steps should be similar (sense the driver, "poke" it for velosity and follow it's "path").
I'd look at Killer Kork, an ai bot, because it looks like a great resource, but there might be
other resources that fits better (search for path finder, AI, sensing for instance).
#3
07/11/2006 (6:23 pm)
Thanks Johan. Also thanks for understanding my being a beginner.
#4
THANKS Johan, from me as well... mostly for making sure that we aren't all looked
upon as pure ###holes by anyone and everyone either reading this thread and who
might be new to the scene and have a question that they don't know exactly where
to go, or who to ask...
you are right... that *IS* what the forum and the community is about...
Lord Rosenbaum really outta get a grip with that sorta attitude... and realize that not
everyone is born knowing everything about Torque or game making... like he was.
Quentin... first thing that comes to mind would be to set up a lap counter or trigger, then each time a car passes by, check the velocity... if it is beyond a certain value, have the chase car sget on the road and follow the player car, closing or not at whatever rate you desire...
a simplified solution, but simple enough to implement without getting too bogged down in ai and physics stuff... search and read about triggers, lap counters, tracks or splines, to get going...
keep in mind, like Johan suggests, you eventually might have to go the full route and get familiar with ai and how it's implemented in order to get exactly what you want...
good luck...
--Mike
07/14/2006 (6:32 am)
Wow... THANKS Johan, from me as well... mostly for making sure that we aren't all looked
upon as pure ###holes by anyone and everyone either reading this thread and who
might be new to the scene and have a question that they don't know exactly where
to go, or who to ask...
you are right... that *IS* what the forum and the community is about...
Lord Rosenbaum really outta get a grip with that sorta attitude... and realize that not
everyone is born knowing everything about Torque or game making... like he was.
Quentin... first thing that comes to mind would be to set up a lap counter or trigger, then each time a car passes by, check the velocity... if it is beyond a certain value, have the chase car sget on the road and follow the player car, closing or not at whatever rate you desire...
a simplified solution, but simple enough to implement without getting too bogged down in ai and physics stuff... search and read about triggers, lap counters, tracks or splines, to get going...
keep in mind, like Johan suggests, you eventually might have to go the full route and get familiar with ai and how it's implemented in order to get exactly what you want...
good luck...
--Mike
#5
Sometimes the way a question is asked makes all the difference in the world.
Even though it has "please" in it, it's still structured like a command or an imperative statement. Because of that, it comes across like . . .
At least that's how the original post sounded to me.
A better approach might be . . .
The second approach just has a different feel to it. And it invites people to offer assistance rather than insisting on it.
07/14/2006 (7:06 am)
@AllSometimes the way a question is asked makes all the difference in the world.
Quote:Please give me this info
Even though it has "please" in it, it's still structured like a command or an imperative statement. Because of that, it comes across like . . .
Quote:solve my problem for me and post the solution here
At least that's how the original post sounded to me.
A better approach might be . . .
Quote:I'm having trouble doing such and such. I tried doing this and that, but it didn't work. Does anyone have any suggestions or maybe some places I can learn more about this. Thanks.
The second approach just has a different feel to it. And it invites people to offer assistance rather than insisting on it.
#6
I'd also like to add to Aaron's reccomendations that you shouldn't start two different threads for the same problem. Doing that tends to increase your chance of being ignored rather than helped.
07/14/2006 (7:18 am)
The original post came across that way to me as well.I'd also like to add to Aaron's reccomendations that you shouldn't start two different threads for the same problem. Doing that tends to increase your chance of being ignored rather than helped.
#7
regardless though, the initial response he got was sort of inappropriate... in my opinion...
i see it exactly as Johan did... the initial response appeared dismissive and not conducive to the spirit of 'community', which is, after all, what this place is supposed to be all about...
hence, my comments...
--Mike
07/14/2006 (7:46 am)
If the last two viewpoints have any validity at all, then it should also have been quite obvious, that this question was asked by someone who was either new to and/or , unfamiliar with forum ettiquettes here... or at the very least, might not be an english first speaking member...regardless though, the initial response he got was sort of inappropriate... in my opinion...
i see it exactly as Johan did... the initial response appeared dismissive and not conducive to the spirit of 'community', which is, after all, what this place is supposed to be all about...
hence, my comments...
--Mike
#8
07/14/2006 (9:24 am)
All I want is help. This problem is over. THANK YOU!!!
Associate Anthony Rosenbaum
You got to be kidding right
In the future I suggest your research should focus on mathmatics and phyics not begging for information from the community.