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 / Collision issue

Author
Message
Shogun Blackbrunei
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: Imaginary World
Posted: 16th Jul 2005 05:48
Hi, I've been working on some collision for my game for more than 2 days now and I'm clueless .
I am trying to make some smooth sliding collision and I looked at some examples in the codebase.
The code I use is given below and everytime it collides and thus gets repositioned, it ALWAYS moves back to the point 0,0,0 and I have no clue why.
Note: ObjPosX#, ObjPosY# and ObjPosZ# are the old object positions, CurX#, CurY# and CurZ# are the new object positions.



If anyone has any idea why this code does not work properly, please help me out and tell me why

To subdue the enemy without fighting is the highest skill...
G Man
20
Years of Service
User Offline
Joined: 17th Nov 2004
Location:
Posted: 17th Jul 2005 03:07
Considering that I wrote that code. I can tell you that it does indeed work if employed correctly. Did you remember to set your level model's collision scheme to polygons? If not then you are inside the level's collisioin box and obviously colliding all the time.

Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 17th Jul 2005 09:09
makes sense, only if I considered that when I tried making my own collision code, and well I managed to get a quick detection, but never could get the object to slide or stop at all, so i went NGC, and well that not exactly what I want now, so I'm borrowing yours GMan (I mean stealing)

Login to post a reply

Server time is: 2024-11-27 16:42:45
Your offset time is: 2024-11-27 16:42:45