Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Bullets and Collision

Author
Message
Legionare
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location:
Posted: 6th Apr 2003 17:46
Hey guys,
Im making a FPS and i need some help
Ive been trying to detect if my bullet is hitting the enemy
ive looked at the tutorials and tried to change it to fit my game
but I have to at a specific distance for it to work
So I need new ways to do this type of collision
Any and all help will be greatly appreciated
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 6th Apr 2003 20:33
Say the bullet is object 1

Set object collision to polygons 1

If object collision(1,0)>0
code here
endif

RPGamer

Current Project: Eternal Destiny
Tech Demo - Colan Island: Currently 716 Lines
Legionare
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location:
Posted: 7th Apr 2003 11:04
I tried that and all it did was slow down the game
my frame rate went bad and there was no indication that methods was working
SO what now?

Beta1
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 7th Apr 2003 17:12
well you could try not using polygon collision - its the slowest option.

If you check collisions between specific objects using loops you can first check if the objects are close together first using pythagorus and then only progress to polygon collision if they are close together. That way you save a lot of time by not calling the slow polygon collision routine every frame

Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 7th Apr 2003 21:03
i like INTERSECT OBJECT - i find it extremely useful for having bullits going v.fast and not missing collisions.

Login to post a reply

Server time is: 2024-05-03 23:46:10
Your offset time is: 2024-05-03 23:46:10