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.

Dark GDK / Terrain problems!!!

Author
Message
ScapeSta
15
Years of Service
User Offline
Joined: 28th May 2009
Location:
Posted: 10th Jun 2009 16:47
Ok I've built a terrain, but it has some spots that aren't supposed to be able to get on/to. I need help on using COLLISIONS.

"A job well done is a well done job."
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 10th Jun 2009 17:22
Not much info to go on there.

You might look at the terrain height where the character/camera are located versus what it is after you move and only allow movement if the Y increase is below a certain amount. This assumes that you have significant increase in height in your walls, mountains, etc.

Depending upon the size of the area, you could place a box or plane on each side of it, hide them and check for collision with them. You could make one large box to cover it all if it is a square or rectangular area.

You could also check the world coordinates and make sure that you do not enter a particular area. For a circular area, you could use vector3 to check distance.

Hope this helps. If not, please post more info / code.

LB


So many games to code......so little time.
ScapeSta
15
Years of Service
User Offline
Joined: 28th May 2009
Location:
Posted: 11th Jun 2009 00:47
Well i have the terrain set up with fences built into it. I don't want to be able to go over or through them, but to go through the gate when enough force is applied.

"A job well done is a well done job."
BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 11th Jun 2009 01:33
This really isn't the right Board to ask this. Which programming Language are you using?

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 11th Jun 2009 16:37
ScapeSta:
I assumed you had made a terrain from a heightmap and detailmap, but now it sounds like you made an object (.x or .3ds). Please clarify.


So many games to code......so little time.
ScapeSta
15
Years of Service
User Offline
Joined: 28th May 2009
Location:
Posted: 11th Jun 2009 23:47
Sorry i'm new to this programming stuff. BiggAdd i'm using Visual c++ and dark GDk. LBFN I am using wings 3d to make the terrain because i can't find a free terrain maker.

"A job well done is a well done job."
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 12th Jun 2009 02:17
ScapeSta:

Yeah, it would be better to post about this on the Dark GDK board, as it is more of a programming issue. You're making an object that can be used as terrain, whereas an actual terrain is technically different. I would try to help if I could, but I'm a DBP guy.

Good luck,

LB


So many games to code......so little time.
BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 12th Jun 2009 02:51
I'll move this to the DarkGDK Boards, they may be able to offer a little more coding insight to your collision problems.



kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 12th Jun 2009 03:17
err with dark gdk we use sparkys collision, i believe you can setup darkphysics to handle your collision aswell

ScapeSta
15
Years of Service
User Offline
Joined: 28th May 2009
Location:
Posted: 13th Jun 2009 20:14
Thanks BiggAdd! =) ! Ok thanks kklouzal, Could you give me a link to download sparkys collision because i belive it's free. Thanks!

"A job well done is a well done job."
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 14th Jun 2009 11:09
http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5
do a forum search in future

ScapeSta
15
Years of Service
User Offline
Joined: 28th May 2009
Location:
Posted: 14th Jun 2009 19:22
Nah. I like other ppl to do my work

"A job well done is a well done job."

Login to post a reply

Server time is: 2024-11-25 08:50:53
Your offset time is: 2024-11-25 08:50:53