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 / lol guys im trying to add some collision to my matrix i need help

Author
Message
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 30th Jul 2005 06:15 Edited at: 30th Jul 2005 09:08
can any body help me add collision to the matrix im just trying to learn some basics of collision and matrices

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Jul 2005 08:52
Collision doesn't work with matrices - if that's what you are trying to figure out...

You need to use:

ObjHeight = Get Ground Height(MatNum,ObjX,ObjZ)

If the object's Y position is less than ObjHeight then adjust it.

TDK_Man
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 30th Jul 2005 09:05
ok ty

Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 31st Jul 2005 22:51
for us beginners, to expand on what TDK wrote....


y#=get ground height(1,object position x(1),object position z(1))
position object 1,object position x(1),y#+.5,object position z(1)

the additional .5 after the y# is needed for my character model to traverse the landscape without clipping into the steeper slopes
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 1st Aug 2005 00:44
o ok
ty

Login to post a reply

Server time is: 2024-09-24 01:28:40
Your offset time is: 2024-09-24 01:28:40