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 / A small collision issue with a matrix i dont get.

Author
Message
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 3rd Jun 2007 20:43
Well,i am working on a simple FPS framework as a project to test my 3D game skill's,but i cannot get the collision with Matrixes right.

Attached is a ZIP containing all files required,Note that GUI.dbpro is the main file.

Issue:

I keep falling down through the matrix on one side of the hill's

Attachments

Login to view attachments
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Jun 2007 14:39
GET GROUND HEIGHT uses coordinates relative to bottom left of matrix, not world coordinates 0,0,0

Because you have moved matrix to 250,0,250 you need to deduct 250 from X and Z testing coordinates in GET GROUND HEIGHT commands.

Now you walk over your hills just fine.

Boo!
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 4th Jun 2007 20:45
Ah,yes.Thanks Spooky.That helped it work

Login to post a reply

Server time is: 2024-09-26 22:54:11
Your offset time is: 2024-09-26 22:54:11