View Full Version : Collision detection
labtek9
09-05-2009, 06:20 PM
I need super easy collision detection i hate walking through buildings. I need this because for my new game i dont want to walk through stuff, at first i was thinking it was not solid and its not so i could really use collision detection
REALLY SIMPLE!!
MuqiTechNerd
10-20-2009, 10:23 PM
well u could always set an if/then statement. if variable (of whatever) is within so and so meters of variable (building) then variable (people)... something. experiment. u cud do a wait method for _ seconds. umm. move away from building _ meters. something. but thats the basic idea.
x2495iiii
10-21-2009, 01:43 AM
Or you could use the simplest one: The preset collision detection engine comes with the "let the arrow keys move the camera" method.
xxledzeppelin2x3
10-31-2009, 09:17 PM
when you let the arrow keys move the camera though it messes the game up?
labtek9
11-02-2009, 04:48 PM
let arrow keys move is the only thing i use with 2.2 but it never works!
Jeremytroid
11-04-2009, 07:20 PM
If you're using a Mac then collision detection never works on any version. In my Mirror's edge game the "fall" method made things solid. It was "If camera is within 5 meters of building cluster 4 do camera move backwards 5 meters" sounds weird but it works!
Edit: this makes all the objects solid not just the one
labtek9
12-07-2009, 06:29 AM
I don't use mac i have a new Windows Vista but it never works i'm getting really angry so I guess I'll try your way.
lanel27
12-15-2009, 12:36 PM
The only problem with the 'let the arrow keys move ____" even if the camera is vehicled to the object and on th POV of the object, you still go through when you go backwards.
Truth be told there is no easy collision detection (atleast that I know of), for a game im making i needed 85 sheres and 8 cylinders for collision detection