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.

DarkBASIC Professional Discussion / collision detection

Author
Message
Bren
22
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Belgium
Posted: 21st Oct 2003 00:24
I used the code out of the tutorial (can't find the source code, gfx or the exe anywhere though) to see if my little cube which is flying over the screen is colliding with my enemy. But it wont detect the collision. I'm not using .bsp but only .x models also for my level. So I adjusted the code to:



The bullet is flying but there is no collision. The animation frames are correct (I tested that seperatly).

Any idea why?

Games don't kill ...
I do!
http://www.gamingzone.be the ultimate gaming community
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Oct 2003 01:14
Does your bullet actually collide? If it's moving too far each frame, it will be in front one cycle, behind the next. You might need to use something like LINEAR INTERPOLATE VECTOR2

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Bren
22
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Belgium
Posted: 21st Oct 2003 02:12
ok thanks for the tip, I'll play arround with it

Games don't kill ...
I do!
http://www.gamingzone.be the ultimate gaming community

Login to post a reply

Server time is: 2026-07-26 05:22:42
Your offset time is: 2026-07-26 05:22:42