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 / How much of a object collides with something

Author
Message
Flamertor
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 23rd Aug 2014 00:16
Hi,

I am trying to develop a system in my game which requires the information of how much of a object collides with another item. I don't have a clue of where to start and can't find anything on the forum.

thanks
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 23rd Aug 2014 02:02
I think you need to post more details,

What is this object?
What sort of 'How much of 'an' object' do you mean?
-Volume?
-Surfaces?
-Parts/Limbs?
Do you already have plans for a Physics Engine?
Do you want to avoid using Physics?
Are you using a collision plugin?

Post an image of the 'Objects' and I think someone can help you further...

Hope that helps...



Flamertor
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 24th Aug 2014 19:26
Hi, so sorry for the slow respond. I was going to use it for find how much of the sword had hit the armor/person but after going over the combat system a bit more I scarped that part of it. Sorry I didn't inform you earlier but I am intrigued still slightly by this.
chafari
Valued Member
19
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 24th Aug 2014 19:45
Quote: "I was going to use it for find how much of the sword had hit the armor/person"


Yeah, you didn't inform about what you exactly need. You could achieve this , instead of how much of an object collide, you had better using how much time two objects are colliding...something like a counter that runs every time two objects are hitting / colliding.

I'm not a grumpy grandpa
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 24th Aug 2014 21:44
Or use the speed of the sword swing

Flamertor
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 24th Aug 2014 23:19
Well I have factored in the force of the sword and the reason I wanted to know how much of the weapon has hit is because it is used for a calculation of how deep a object would go into another object at high speed. I guess I could of done it for the they collide for.
chafari
Valued Member
19
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 25th Aug 2014 01:11
Here I come with one of my tricks. We could use an intersect to determine how deep the sword goes through .





Cheers.

I'm not a grumpy grandpa
Flamertor
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 28th Aug 2014 19:21
Thank you very much Chafari that helps a lot! Also helped me figure out how to make the custom animation from an attack.

Login to post a reply

Server time is: 2025-05-16 20:57:42
Your offset time is: 2025-05-16 20:57:42