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 / Objects Collision & Gravity

Author
Message
Runtest
14
Years of Service
User Offline
Joined: 15th Oct 2011
Location:
Posted: 16th Oct 2011 01:42
Hello all. I am a bit confused on gravity and some basics of object collision. I have been going through the tutorials and I am a bit confused. Every example that has the player colliding with the ground is using some sort of matrix. On the other hand, I am using CShop 4.0 and export my levels as a model (.X Direct X). Do I also need to generate a matrix to path across where the model will 'walk' or is there a way to get the top model height directly underneath another model? Here is one of the example scripts I am looking at as an example.



I need a replacement for ground height. I suppose I could layer a matrix on every part of the model I would like the player to walk but that could become rather tedious.

3DS Max 9
CShop 4.0
DB Pro (Latest as of Oct 2011)
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 16th Oct 2011 14:37
Welcome Runtest

You will need to search for "Sparkys Collision" tutorial in the forum.

Runtest
14
Years of Service
User Offline
Joined: 15th Oct 2011
Location:
Posted: 17th Oct 2011 06:22
Oh, thanks for the reply Chris. I have run across that a couple times. Thanks for the tip!

Login to post a reply

Server time is: 2026-07-10 04:20:29
Your offset time is: 2026-07-10 04:20:29