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 Discussion / Help Matrix Collision

Author
Message
jkfde
13
Years of Service
User Offline
Joined: 6th Nov 2010
Location:
Posted: 7th Nov 2010 01:24
It wont let me post my code because it says it has bad language


I need Help. How can i get my Player to collide with matrix?
How can i tilt the camera when not on level ground?

Please Help
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Nov 2010 03:34 Edited at: 7th Nov 2010 03:36
Hi,


You can get the height of the matrix at a given coordinate with y position=get matrix height(<matrix>,<x>,<z>.

TheComet

jkfde
13
Years of Service
User Offline
Joined: 6th Nov 2010
Location:
Posted: 7th Nov 2010 17:02
Quote: "Hi,


You can get the height of the matrix at a given coordinate with y position=get matrix height(<matrix>,<x>,<z>.

TheComet
"

I tried what you said and it still doesn't work

Is the X and the Z suppose to be a number or is it just the letter?

Is there any other way to get collision to work on a matrix?
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Nov 2010 22:36 Edited at: 8th Nov 2010 22:37
Study the code and change some things around or add new stuff to get a feeling for programming. I also advise you to look at TDK's tutorials



TheComet

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 9th Nov 2010 00:43
Hi there...have a look to this example...I hope it can help.



cheers.

I'm not a grumpy grandpa
jkfde
13
Years of Service
User Offline
Joined: 6th Nov 2010
Location:
Posted: 9th Nov 2010 04:27
OK i got the object to collide with matrix no matter what height matrix is. Thanks THE-COMET and CHAFARI for your help.

Do you guys know how to tilt the object so when i go uphill my object tilts so its level with the new ground?

Please keep it simple

Please Help

Thanks
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Nov 2010 18:01
Take a look through:

Tilt object on matrix

Enjoy your day.
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 10th Nov 2010 20:40
You can get object tilt, just checking what height is around you object.Here is an example.




Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-04-20 03:56:29
Your offset time is: 2024-04-20 03:56:29