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.

DarkBASIC Discussion / Problem with collision

Author
Message
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 8th Nov 2003 04:47
I've got a program up and running with a 3rd person crosshair activated. I have a hidden plain that tests whether or not the crosshair is "behind" any foreign object.

When I test for the hidden plain's collision with any particular object, it only activates directly in the center of the plain during collision. This has been frustrating me to death, and I'm wondering if I should post my hefty code or not.

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Nov 2003 04:53
Hey man, just post the code we came up with before... someone will help...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 8th Nov 2003 04:57
Well, I can't say that I warned you...

Pay everything else in the code no heed except for the collision stuff. I know the bug is somewhere, but I've been looking for hours practically. I'm quite sure it is simply the collision code, though.

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 8th Nov 2003 05:00
YEEEEEEEEEEEEEES!!! I fixed it!!!

All I had to do was set the plain to box collision. I don't know why it works but it works!

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Nov 2003 06:10
Lol, good on ya...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-21 17:15:49
Your offset time is: 2025-05-21 17:15:49