Adding in collision ?

88597832951f708ac228055faf38f2e3
0
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 ?

Regards

Andy

4 Replies

Please log in or register to post a reply.

A638aa42130293f319eda7fa4ba121f4
0
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.

88597832951f708ac228055faf38f2e3
0
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.

Scene.GetCollision

The parameters of this is

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

i hope this Helps a little more.

A638aa42130293f319eda7fa4ba121f4
0
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.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 May 26, 2011 at 01:54

@Elit3Gam3r

I am using a Engine

Which one? ;)