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.

3 Dimensional Chat / 3D Collision strange fact (?)

Author
Message
Pessulum
17
Years of Service
User Offline
Joined: 4th Feb 2003
Location: Italy
Posted: 4th Feb 2003 12:21
I'm trying to make a 3D game with many matrixes used as worlds.
My problem is:
when i'm in the first matrix collisions work fine.
if i delete the first matrix and load a new one, collisions don't work.
Obviously i'm using built-in collisions.
Thank you all BIG GUYS for help

I Hope you'll understand my english....
Pessulum
17
Years of Service
User Offline
Joined: 4th Feb 2003
Location: Italy
Posted: 4th Feb 2003 12:28
uh, if this can help:

the main loop is the same for both the matrixes, like this:

1 Load matrix 1
2 Main loop -------> collision works
3 Delete matrix 1
4 Load Matrix 2 -------> collision doesn't work
5 Main loop

John H
Retired Moderator
17
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 4th Feb 2003 15:39
Did you recode the collision for the send matrix? Id try including the collision code over again when you load your second matrix.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Pessulum
17
Years of Service
User Offline
Joined: 4th Feb 2003
Location: Italy
Posted: 4th Feb 2003 15:52
ehm, sorry, what do you mean by "collision code" ?
i've used the "set object collision to polygons (objN┬░)" an repeated it after loading the second matrix, but it doesn't work anyway.
plz help me.....
Galiem
17
Years of Service
User Offline
Joined: 27th Nov 2002
Location: United States
Posted: 4th Feb 2003 19:32
Make sure the variables you are using to identify the matrices update after Matrix 1 is deleted, and Matrix 2 is Reloaded (hehe pun intended). The easiest way to do this is as follows (not code, just a general idea)

1: Main Loop
First thing in the main loop, variables identifying current matrix are declared, and another set of variables are declared. Next, simply type for each variable that the first set = the second set. Now use the first set only throughout the main loop. Have the second set shared all the way through the chain, by the functions.

2: Matrix loading.
Update the second set here, and make sure it is shared! This can be done simply by using the matrix ID number.

Now, whenever control is passed back to the main loop, the set of variables used to identify your matrix, and objects withing, is automatically upated, and all collision should work.

Nine times out of ten when your code is correct, but something don't work, it's simply the organization of your data. It's good to follow your code through, variable by variable, noting what their values will end up being, just to make sure that everything is done in the right order. It can be a headache rearranging things, and it is even sometimes impossible. This is why it's good to draw up a well though out flow chart for your program before you ever write a single piece of code.

Coding:
97% Organization
1% Knowledge
2% Cheese

Made from all natural synthetic ingredients.

Pessulum
17
Years of Service
User Offline
Joined: 4th Feb 2003
Location: Italy
Posted: 5th Feb 2003 10:42
I'll check better but i used functions to load matrixes (and so the variables should be clean).
I ran in debug too, and i discoveer the line "wrong"
simply when i use "object collision(A,B)" it don't recognize it.
Really i dunno what to do....
:_(

Login to post a reply

Server time is: 2020-08-15 12:35:38
Your offset time is: 2020-08-15 12:35:38