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 / Collison In Matrix

Author
Message
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 17th Oct 2003 09:10
is it possible to do so that an object cannot go outside the matrix?
means it shld stop moving forward when it comes to the end of the matrix.

thanx in advance.

I am da man! Beware of my LAZER EYES!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 17th Oct 2003 21:03
as long as you know how long+wide the matrix is then its very easy

at the top of your main loop, put



then later on near the end of the main loop



that should work


"Look a bandwagon.... lets jump on it!"
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 18th Oct 2003 07:43
oh man that was a simple one lol

now that code tells me something what i wanted to know
i thought dark basic places object in 3d world in reference to the centre of 3d world but this starts from the side ways !

I am da man! Beware of my LAZER EYES!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 18th Oct 2003 11:00
the bottom left hand corner of a matrix is placed at 0,0,0 in the 3d world, if you move the matrix along the x/z axis you would have to change the limits of the matrix


"Look a bandwagon.... lets jump on it!"
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 18th Oct 2003 14:39
thanks u gave a kewl info to me.

I am da man! Beware of my LAZER EYES!

Login to post a reply

Server time is: 2024-11-25 12:34:24
Your offset time is: 2024-11-25 12:34:24