Thanks alot for the template and all the other files.
Now when i have looked at your code and seen how you have solved some of the problems i got
i now know how to add like cylinders and so on. Im going to try more how to use the text and
that kind of stuff later on.
Now though, i want to know more about Collision Detection.
I got a simple room, four walls and two floors(one is roof of course), added some textures on to that, and made it look like a proper room.
I got the original code from a tutorial, so i have som problems with understanding all the code.
I have undesrtood that this is the part that i have to use, thats pretty obvious.
Sadly, how to modify it so its works for me isnt that obvious for me.
This is the code i am talking about:
DxVBLibA.D3DVECTOR linestart;
DxVBLibA.D3DVECTOR lineend;
float distance;
if (Room.Collision(ref linestart,ref lineend,CONST_TV_TESTTYPE.TV_TESTTYPE_BOUNDINGBOX,ref distance)== true)
{
//What to write here to make tha camera stop?
}
What exactly is linestart and lineend? and what does CONST_TV_TESTTYPE.TV_TESTTYPE_BOUNDINGBOX do?
And what is it collideing to? i mean, if i got like a box in the middle of my room, and i want it to stop if it collide with the walls but go steight trough the box. How do i do that?
The second problem i got is what to write inside? i figure that i could take the value that i got from my key-input and just use the opposite value. (if it is negative, then i just add the same value but positive) but that isnt the way it shuld be done is it?