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 / collision with a c shop level

Author
Message
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 9th Jan 2005 22:13
right how would you do collision with a c shop level in dbc i have done it so it looks like your walking on the level but i need to know how to stop the camera going through walls and stuff pls

current projects
codename : tasgarad
Jobyman
22
Years of Service
User Offline
Joined: 17th Mar 2004
Location:
Posted: 9th Jan 2005 23:31
if you have dbce nhanced then use a dll, otherwise your gonna hav to write your own collision routine. It's easy if all the objects are at right angles and have 8 vertices, basically all of them are cuboids cos then you can store the ncessary data in an array and us a really simple sliding collision code, i dont have the code and cant be bothered making it up but its simple, check to see if the camera is inside an object and theres your collision.

Everyone is a comedian...
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 11th Jan 2005 04:05
errr yea i think just about al of the buldings and that are right angles apart from the roofs but i do not know how to store it in an array and stuff so could you when u have the time write it for me or explain it for me pls

current projects
codename : tasgarad
thinkdigital
22
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 15th Jan 2005 10:48
Does DBC 1.13 not have it's own sliding collisions?

"Never put off for tomorrow what you can put off for the day AFTER tomorrow..."

eGeneric Works DB site - egenericworks.com
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 15th Jan 2005 19:52
i think i only have dbc 1.12 enhanced

current projects
codename : tasgarad
thinkdigital
22
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 16th Jan 2005 09:59
1.12
I didn't even know people had 1.12's

Check for an example called "Sliding Collision" in the examples part. If it's there, then you probably have it.

"Never put off for tomorrow what you can put off for the day AFTER tomorrow..."

eGeneric Works DB site - egenericworks.com
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 16th Jan 2005 21:21
i swear i had 1.12 it said it down the bottom before i loaded any program in it i have upgraded now 1.13 must of been a fault or somthing i will check the tus again and see if the sliding collision tut helps

current projects
codename : tasgarad
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 17th Jan 2005 01:20
okay i dont know how to store all the data needed in an array so i cant use the sliding collision code can somone help this has been buggin me for ages

current projects
codename : tasgarad
thinkdigital
22
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 17th Jan 2005 07:35
What's your code looking like?

"Never put off for tomorrow what you can put off for the day AFTER tomorrow..."

eGeneric Works DB site - egenericworks.com
AlexI
21
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 18th Jan 2005 02:52
look in the code base if your using a direct x model or 3ds there is a greght scritpt which stops you from going threw walls there is a dll in it aswell. you just replace there model.
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 19th Jan 2005 01:05
okay thanks do u know what it is called pls

current projects
codename : tasgarad
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 22nd Jan 2005 01:08
pls i cant find it could u tell me

current projects
codename : tasgarad
Hop a long
22
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 23rd Jan 2005 11:52
Steve
Maybe hi was talking about this
http://forum.thegamecreators.com/?m=forum_view&t=44268&b=6
Although I haven't tried it, I see alot of people are excited about
http://forum.thegamecreators.com/?m=forum_view&t=38869&b=6&p=0
steve c
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 25th Jan 2005 04:04
coolio i am putting it in my code now thanks

current projects
codename : tasgarad

Login to post a reply

Server time is: 2026-07-11 12:59:18
Your offset time is: 2026-07-11 12:59:18