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 / map coordinate help

Author
Message
Patrick987
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location:
Posted: 25th Aug 2009 07:18
i just started 3d programming and i was wondering how to find out the x and z coordinates of a level so i know where to stop the player at the edge of the map
pokerman
15
Years of Service
User Offline
Joined: 20th May 2009
Location: Bournemouth, England
Posted: 25th Aug 2009 17:00
have you tried dbSetCameraRange ( float fNear, float fFar )
ThatOther Person
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location:
Posted: 25th Aug 2009 17:16
The simplest way is to just check manually. Walk around as the charecter in game and see where you are when you arrive at the edge.

dbText(10,10,dbStr(dbObjectPositionX(charecterobjectnumber));
dbText(10,30,dbStr(dbObjectPositionZ(charecterobjectnumber));

There are likely better ways but it sorta depends on how exactly your level is constructed. Is it just one massive directx file?

If you have a level that is any more complex then a 2d rectangle though then manually writing in what x and z coordinates the player cant pass likely isn't a time effective way of constructing boundaries. Your probable going to want to set up some form of proper collision checks. Sparky's collision dll is great for that. http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5
Patrick987
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location:
Posted: 28th Aug 2009 03:02
ok i figured that out. i made a test level with some ground and a box and i was wondering if there is a way to select just the box in dgdk its just one .3ds file

Login to post a reply

Server time is: 2024-10-01 12:41:59
Your offset time is: 2024-10-01 12:41:59