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 / collision between 2d and 3d

Author
Message
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 21st Nov 2009 15:58
Hi,
about collision in DarkGDK, i want ask a question:
Is it legal to use the command "int dbObjectHit ( int iObjectA, int iObjectB )" between 3d model and 2d sprite (ex: 2d bullet and 3d enemy)
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 21st Nov 2009 16:47
i doubt,

but you might be able to do the following:
make a random image, with any size, and set it's alpha to 0, and position it on dbObjectScreenX/Y(), and size it to be as big as the object ( you can size it depending on the distance between you and the enemy ) and test the collision between that random sprite and the bullet.

anyway, making a 2d bullet wouldnt look as good as a 3d bullet

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 21st Nov 2009 21:53
If you are going for realism then the bullet wouldn't even be seen(so you don't even make one) you just cast a ray(with sparkys) or something to that extent and see if there is a object in the line.

New Site! Check it out \/
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 21st Nov 2009 23:42
Quote: "If you are going for realism then the bullet wouldn't even be seen(so you don't even make one) you just cast a ray(with sparkys) or something to that extent and see if there is a object in the line.
"


What if the bullet has a tracer?

Your bedtime story is scaring everyone
If found my very own Fail!: http://cheezburger.com/View.aspx?aid=2712171776
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 22nd Nov 2009 04:04
What do you mean? I'm sorry i am not familiar with this form of a tracer.

New Site! Check it out \/

Login to post a reply

Server time is: 2024-11-24 17:32:09
Your offset time is: 2024-11-24 17:32:09