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 Professional Discussion / DBPro Intersect Matrix

Author
Message
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th Oct 2010 02:25 Edited at: 6th Oct 2010 01:12
Time ago, I came up with a piece of code to check if there was a matrix collision. We can check if there is an intersection with a .x object. Now I have another code, that tells us if we are intersecting the matrix or an advanced terrain.This example shows a matrix with a grid of 10*10 , but it works in the same way as if it is 1000*1000.

The management is a bit of a mess, but you´ll be able to handle with it. I hope this can help somebody.






I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-22 03:51:21
Your offset time is: 2026-07-22 03:51:21