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 / Vector&Array Collision : How do I do that?

Author
Message
Matto
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 8th Feb 2003 03:10
It was mentioned to me by Raven V, that I may be able to use the vector information contained in models and objects in a game and pop that data into an array or several arrays and then use these to make an advanced or better collision system.

I like the sound of this very much, but I have no idea or clue even where I would start? I know all models contain vectors but how do I get the information to hand on an object and further how would I get that information into an array and use it for the collision?

lets say for an example I make a cube which is a static object and a sphere for a player object, how would or should I go about applying their vectors to arrays and then inturn use them for collision, I am not good on vectors I literally know they are there (and are on every corner?) and thats it.

Many thanks for any help on this one, I am keen to get to know more on these vectors and figured this would slap me right in the middle of it and help me understand better how they work best or can be used.
1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Matto
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 8th Feb 2003 03:18
Opps, I think Vector should be Vertex, sorry I got all confused there for a moment, but then maybe vector and vertex can be used for collision, something tells me I will need some good help on this one, sorry for any confusion here, still any help on the subject would be appreciated very much.

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Feb 2003 04:46
to make a vertex array is quite simple and for this kinda thing should be kept simple ...

there are two methods that can be used ... firstly the standard data type



then you'd simply do something to grab this data



and then you'll have all the Vertex information in the array - what you do with it from there is upto you

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Matto
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 10th Feb 2003 02:32
thanks Raven V, I will get my head around that before going any further..

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name

Login to post a reply

Server time is: 2025-05-19 07:51:49
Your offset time is: 2025-05-19 07:51:49