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 Discussion / effective fight coll

Author
Message
ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 2nd Jul 2003 15:02
can any one give me an example of an effective pricisce collision i can use in fighting, plz try not to use db collision coz i always find it not very accurate. i tryed this



i did because the punch frames are 16 to 20 and the punch hits 11 unites away for the object

object 56 is the punchers object
X# and Z# are the targets co-ordinates
mX# and mZ# are the punchers co-ordinates
amX# and amZ# are the place the punch should hit co-ordinates

hope some one can help
Crystal
Newbie Now; Expert Later
Current project:The Sorus
http://us.f1.yahoofs.com/users/8e2ce249/bc/logo.jpg?bc6XVw.ALSzFxXyM[/img]
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 2nd Jul 2003 17:31
The function I made for sliding collision is rather accurate. Or you could use array based or math collision which is extremely accurate

RPGamer

Current Project: Eternal Destiny
Questions? Comments? Suggestions? Go to the Eternal Destiny Forum!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Jul 2003 17:46
Well, it's easy to calculate a limbs position in 3D space. It's easy to calculate the distance between 2 points in 3D space. So if you gave each limb a radius, it'd be straightforward to check for collisions between the limbs and check which limbs are colliding. You could detect a punch in the face etc. It might be accurate enough, but you might want to add a few dummy limbs too, like halfway up the shin for example.


Van-B

My cats breath smells of cat food.
ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 2nd Jul 2003 23:01
all i is a limb to object collision but as i said earlier i find DB collision dogdey

Newbie Now; Expert Later
Current project:The Sorus
Dr DooMer
22
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 3rd Jul 2003 01:36
I think that Van B means that you write your own maths collision: if you find out the 3D positions of two limbs, and then check the distance between them, you can decide whether or not they are touching each other. Of course, this is pretty similar to sphere collision and so isn't incredibly accurate.

ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 3rd Jul 2003 20:06
all i need is an example of a maths code that can then me whether or not object 56 hits object 1 when in frames 16 to 20

if thats not too much to ask
crystal

Newbie Now; Expert Later
Current project:The Sorus
ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th Jul 2003 14:34
how do you get the position of a limb in db rather than an object

Newbie Now; Expert Later
Current project:The Sorus

Login to post a reply

Server time is: 2025-05-20 01:47:50
Your offset time is: 2025-05-20 01:47:50