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 / when worlds don't collide ...

Author
Message
Elron
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location: TX
Posted: 28th Jul 2004 13:16
below is the code for my little world

can someone please list what i need to add
to get the cam to collide with the world correctly

all i need are the calls though the correct code would be welcome

thanks,
E


DB Pro/AMD 1133/384 MB ddr/NVIDIA GeForce4
"if it's not broke, i have not tried"
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 28th Jul 2004 14:11
hmm, not quite sure what your looking for. All that's there is a bunch of setup code, but no loop... and one problem you might want to fix before you continue.
I can't tell why you use a variable with such a long name as ImageNumber just to hold the value 1 so that you can create the object. Why don't you just type in 1 instead?lol. I can help, but I've got nothing to work on here...



eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 28th Jul 2004 17:57 Edited at: 28th Jul 2004 17:58
if you want to use "intersect object" with a terrain, I suggest you use Sparky's collision dll. Very snazy, and much faster than DBPro's intersect object.

http://forum.thegamecreators.com/?m=forum_view&t=31051&b=5

Hope that helps!


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
Elron
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location: TX
Posted: 29th Jul 2004 00:15
EMP thanks for the link i'll give it a look/see


Carlitos here is the full code for the project i am working on
mostly snipets i have found on the forums and a few things i figured out from the help file

Thanks,
E


DB Pro/AMD 1133/384 MB ddr/NVIDIA GeForce4
"if it's not broke, i have not tried"
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 30th Jul 2004 22:49
If you are using DBC then you need GET GROUND HEIGHT not TERRAIN HEIGHT, if you are using DBPro then please ignore me cos I know nothing about DBPro
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Jul 2004 23:48
just remember, they will never tear us apart.

Sorry, couldn't resist...thread title...maybe most people around here are too young?

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 31st Jul 2004 04:21
Oh no! Invasion of the movie trivia buffs!

S.

Any truly great code should be indisguishable from magic.
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 1st Aug 2004 01:10 Edited at: 1st Aug 2004 01:10
Or is it INXS ?

or even CROWDED HOUSE
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 1st Aug 2004 03:57
I thought the thread title refered to the Powerman 5000 song...

When worlds collide...
Are you ready to go,
'Cause I'm ready to go,
What you gonna do; baby, baby!?
Are you goin' with me,
'Cause I'm goin with you,
That's the end of all tiiiiime!

So...

Are you trying to collide the camera with a heightmap or a matrix? I don't know much about heightmaps...

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]
Elron
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location: TX
Posted: 7th Aug 2004 00:22
Glad a few folks here are not affraid to show there age
Thanks to all for the trip down amnesia lane
As for the original topic of the post:

Bolt i am now using a matrix instead of terrain map.
I have found that the auto collision seems to work better this way.
However i still can not figure how to collide with placed objects.

Please forgive my slowness in this matter.
I don't assimilate code well

This is the code i am using for the matrix ...



Thanks again,
E

DB Pro/AMD 1133/384 MB ddr/NVIDIA GeForce4
"if it's not broke, i have not tried"
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Aug 2004 01:17
It's INXS.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 11th Aug 2004 10:40 Edited at: 11th Aug 2004 10:42
So...what did the thread title refer to?

Is this in DB Classic or Pro? If it is in classic you can use static collision boxes for your stationary objects. No matter which language, you can use collision boxes and sliding collision. It is very fast, especially compared to polygon collision, but is not perfect because boxes for collision are formed around your objects.

Look at the help files, there are some good examples for standard sliding collision.

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]

Login to post a reply

Server time is: 2024-11-27 06:30:28
Your offset time is: 2024-11-27 06:30:28