Adding in collision ?

Elit3Gam3r 101 May 21, 2011 at 12:58

Hi There,

I have just started back on my game again and have hit a dead spot im not sure how to create collision with players.

What am i talking about ?

well when i shoot my gun id like it to take the bot’s health down ect..

could any one explain this or have code to show how its done ?



4 Replies

Please log in or register to post a reply.

fireside 141 May 21, 2011 at 14:43

Apparently you aren’t used to asking questions on a forum. You need to give a little more information. For instance, what language are you using? Are you using an engine? Your question is actually related to collision response, rather than collision, so do you have collision worked out yet? One of the best ways beyond being more specific, is to show a little code that pertains to the situation. Not a lot, just the area in question.

Elit3Gam3r 101 May 21, 2011 at 23:13

My apologise,

I’m Using VB6 and yes I am using a Engine.

i have looked through every class the engine calls to see what part is involved with collision. The only one that had Collision was.


The parameters of this is

GetCollision(Position as Vecter3d,[BestDistance as single = 1]) as Boolen

i hope this Helps a little more.

fireside 141 May 22, 2011 at 02:14

My guess is there is an object or entity class which also has a collision function. The forum for the particular engine you are using might be a better place to ask questions like this.

alphadog 101 May 26, 2011 at 01:54


I am using a Engine

Which one? ;)