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 / object collision with matrixes

Author
Message
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Sep 2004 09:40
How do you make an object colliside with a matrix? If possible could you tell me everything I need to know in order to do it (ex. variable operations etc.)

Thanks in advance
Hop a long
20
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 18th Sep 2004 10:59 Edited at: 18th Sep 2004 10:59
Usually a matrix is used as the ground. Do you want to test if something like an airplane crashes?
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 19th Sep 2004 01:48 Edited at: 19th Sep 2004 01:48
using the get ground height(MatrixNo,x,z) command gets the height of the matrix. If you use this command to get the height and check to see how high your object is then you can make a simple collision system. the code would look a bit like this:





you would then have to implement this into your code something like this:



hope this helps

Login to post a reply

Server time is: 2024-11-27 09:44:11
Your offset time is: 2024-11-27 09:44:11