Collision area and object

Prophet

24-08-2008 21:52:45

Okay, two short questions.
First, is it possible to calculate/retrieve the area which an object collides with another? For example, if I have a cube falling on top of another, can I somehow get the area of the collision?
Secondly, how can I find out which actor collides with another? If I have Actor1 that crashes into Actor2, can I retrieve Actor1 from Actor2? (That might've been a bit diffuse)
Thanks!

betajaen

24-08-2008 22:19:25

Hmm.

The first one, I may have to do some research upon that, I'm sure you can get a list of contact points - but to calculate the area from that, that's some complicated math.

The second one; That's just a simple contact callback.

Prophet

24-08-2008 22:25:17

Ah, I see. We were thinking of calculating the damage taken by the velocity and area, but I guess we'll skip that. Unless you feel extremely eager to find a solution and it's fairly simple, thanks!
And thanks for the callback!

betajaen

24-08-2008 23:34:15

Actually, I have been spending some thought (only a few minutes worth in total); but there may be a function in one of the PhysX functions to do it (how else it work out the volume of a convex shape?)

Otherwise I remember a website featuring a load of 3d maths functions library thing. I'm sure I can remember the name of it; if I eat some more Cake and drink more Orange Juice.

Prophet

25-08-2008 10:25:23

Eat! Drink! I'll look into once I get some more time (hopefully, later today).