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.

Dark GDK / dbAutomaticObjectCollision Problem

Author
Message
Erick G
Retired Moderator
15
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 11th Dec 2004 22:24
Hi all, I am getting weird results with sluding colisiom , vertical planes it is fine and there is sliding collision, however, ob horizantal walls the object sticks.

Does anybody have a solution to this ?

I use void

dbAutomaticObjectCollision ( int iObject, float fRadius, int iResponse )

with my flag set to 0.
OSX Using Happy Dude
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 11th Dec 2004 23:36
Any example code ?

Beware the cat... The alien... The heretic...
Erick G
Retired Moderator
15
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 12th Dec 2004 00:44 Edited at: 12th Dec 2004 05:43
sure, just rem the texture loading and adressing, if you could help with this I would be enernally grateful

OSX Using Happy Dude
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 12th Dec 2004 01:13 Edited at: 12th Dec 2004 01:18
The problem with auto collision is that you cant check for it - and as the camera and player position were always updated, they would eventually go through all walls. In addition, it appears that if there is a collision, the objects X,Y & Z values aren't updated

Whilst I can get the collision working with dbObjectCollision - you then loose sliding collision.

Edit:I think I've got it sorted

Edit of the edit:Try this :


Beware the cat... The alien... The heretic...
Erick G
Retired Moderator
15
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 12th Dec 2004 05:28 Edited at: 12th Dec 2004 05:29
TCA , you rock, I dont understand how you got it to work though ?

EDIT: Obv Getting the Player pos does something ?
OSX Using Happy Dude
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 12th Dec 2004 05:36 Edited at: 12th Dec 2004 05:36
The automatic collision only kicks in after each sync - as it would re-adjust the object, we need to use the current position (and not PlayerX, Y etc) for all movement.

Beware the cat... The alien... The heretic...
Erick G
Retired Moderator
15
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 12th Dec 2004 05:44
ahhh ok, I get it, thanks again !

Login to post a reply

Server time is: 2019-10-14 14:35:59
Your offset time is: 2019-10-14 14:35:59