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.

DLL Talk / Matrix problem with ngc

Author
Message
GALACTUS
19
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 20th Jun 2005 08:19
I was just trying to make a simple alteration to that 3rd person shooter example that's given in the ngc download by taking out the level.x file and inserting a matrix instead. Please take a look at the program.

Thanks,

Aaron

Hey!!
nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 20th Jun 2005 09:21
Matrix objects in DBP are not real objects. As such, they cannot be used properly by the collision engine. If you're using a mesh (like a terrain in the .X format) then you won't have a problem.

It's also important to note (that if you want to use a matrix) that you can use standard matrix techniques WITH the collision engine to do testing against buildings, characters, or anything else that's on top of your matrix.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
GALACTUS
19
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 20th Jun 2005 10:28
How would I go by doing that?--(It's also important to note (that if you want to use a matrix) that you can use standard matrix techniques WITH the collision engine to do testing against buildings, characters, or anything else that's on top of your matrix)

Thanks again,

Aaron

Hey!!
nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 20th Jun 2005 10:31 Edited at: 20th Jun 2005 10:31
First, get comfortable using the collision engine normally (without using a matrix object).

Once you understand how that works, move to using matrices alone. This is a matter of simply keepiung your object above the matrix with DBP's built-in commands (like GetGroundHeight(), etc...)

Then, you could put both of those bits together and you would have your collision solution

For the NGC collision part of it I can provide all of the tech. support needed For the matrix part of it, refer to the DB docs, provided examples, and other members who are familiar with the matrix commands.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 20th Jun 2005 15:40 Edited at: 20th Jun 2005 15:43
I have already posted a method for using matrixs with NGC 2.03

http://forum.thegamecreators.com/?m=forum_view&t=52075&b=6

[edit] Use this code for bullet calcs/ray casting only as get ground height is way faster than collision checking for slow moving objects like players. At least until NGC v4 comes out with octree

Login to post a reply

Server time is: 2024-04-23 06:31:48
Your offset time is: 2024-04-23 06:31:48