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.

Newcomers DBPro Corner / Help with object collision

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 29th Mar 2005 08:04
I have 6 bullets (26-31) being shot at me I use this code


But when i use this, they pass through the wall without being hidden.

So i tried replacing it with this



But this is very slow.

Is there anyway around this?
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 29th Mar 2005 08:35


Use this code but cast an intersect object to see if it hit instead of object collision commands. Or use NGC which can detect if an object passes through another But, use v2 as v3 is FUBARed

Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 29th Mar 2005 21:36
Quote: "Use this code but cast an intersect object to see if it hit instead of object collision commands."


Sorry to be a noob but how do you 'cast an intersect object'?

Also, what is NGC and is it free?
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 30th Mar 2005 06:47
NGC is a collision dll, and no, it is not free(as far as I know. I think there is a trial version somewhere)

to cast an intersect object, use the intersect object command. Look it up in the help files.

Part of solving the problem is actually noticing that the problem is there in the first place

Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 30th Mar 2005 07:36
I never seem to understand those help files



Could someone explain what this means, and/or put it in a snippet please
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 31st Mar 2005 01:31
it means it will project an imaginary line from the x,y,z position to the toX,toY,toZ position. It will then return the distance from the x,y,z position to where the imaginary line hits the specified object(if it hits it). It works a bit like this:



hope this helps.

Part of solving the problem is actually noticing that the problem is there in the first place

Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 31st Mar 2005 05:55
I now have this code but it still doesnt work :S

Login to post a reply

Server time is: 2024-09-23 17:31:19
Your offset time is: 2024-09-23 17:31:19