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 / My collision problem

Author
Message
Whong
20
Years of Service
User Offline
Joined: 15th Jul 2004
Location: Turku Finland
Posted: 30th Jul 2004 17:29
I have a collision problem.
I made an object with truespace 3.2 and a world in deled and saved it as a direct x format.
But I can't get the two objects to collide. I've tried all the commands in the help files.

Please some one help me.
Thanks in advance.

Leif
Zero Blitzt
21
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 30th Jul 2004 17:39
Can DBC use Third Party Commands? If so, try Nuclear Glory's collision plugin. Excellent... to THE MAX!


Rush owns--> www.Rush.com ---> I'm going to see them Aug. 7
Come to #coding. We promise we wont kick you!
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 30th Jul 2004 22:03
i dont sure about DBC use third party commands.. but try it..

i make games, i play games... But the fun thing is that i like to make them more than play them....
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 30th Jul 2004 22:44
NG's DLL will work perfectly if you have DBC 1.13 enhanced and is highly recommended
Whong
20
Years of Service
User Offline
Joined: 15th Jul 2004
Location: Turku Finland
Posted: 31st Jul 2004 21:54
Hello!

Does anyone have a code that would work for the collision.

thanks

Leif
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 1st Aug 2004 01:03
Perhaps you could post the code you are using for collision then we'll see if we can fix it
Whong
20
Years of Service
User Offline
Joined: 15th Jul 2004
Location: Turku Finland
Posted: 1st Aug 2004 17:08
Hello!
Here is the code I hope you can help me!

Thanks!

Leif
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 2nd Aug 2004 06:55 Edited at: 2nd Aug 2004 07:01
I think you will get a lot of feed back about this code. There are many things happening. I haven't worked with loaded models I'm still working with DB Primitives(box, sphere). I see you are trying to get sliding collision with this code.
Quote: "
if object collision(1,2)>0
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
playergrav#=0.0
endif
"

When I wanted that with the primitives I had to make collision boxes. I don't see any for your objects. You can see my code here:
http://www.geocities.com/hifin2003/sliding-collision.html
Probably someone who has worked with models will read your post and give us the correct answer. I'm curious to find out too.

Login to post a reply

Server time is: 2025-05-25 17:26:40
Your offset time is: 2025-05-25 17:26:40