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 / Bullet Terrain Collision

Author
Message
Timatron
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Dec 2009 22:26
I've been looking for an answer to this for days!! I just can't seem to find it. How would I recognize a collision between my bullet objects and the terrain. I'm trying to use dbObjectCollision(20,???) 20 being my bullet and I don't know what to put for the ??? I'm pretty sure I'm going about this wrong, but any help is greatly appreciated! Thanks

-Tim
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 20th Dec 2009 22:43 Edited at: 20th Dec 2009 22:44
if (dbObjectPositionY(bullet)<dbGetTerrainGroundHeight(terrain,bulletx,bulletz))
{
theres a collision
}

the terrain id is what u put for the ?? and terrain

when you put
dbBuildTerrain (number);

Timatron
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Dec 2009 23:11
Ahh, so simple! I'll test it now. Thanks!

-Tim

Login to post a reply

Server time is: 2024-10-01 20:31:45
Your offset time is: 2024-10-01 20:31:45