# Resolve Collision

This topic is 2344 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Ok I finally figured out how to use SAT 3d

But how can i resolve the collision.

I first wantet to just reset the last step at a collision, but that seams unnatural.

Does anyone have a better Idea?

##### Share on other sites
SAT is a good start, but eventually you'll have to figure out the features of the objects that are intersecting, like which edges and which faces. You need references to these features so you can feed that information to the Verlet system which will "deform" these features, and the collision response will follow from that, because the objects will subsequently "fix" themselves through their rigid structures. I'm posting the X-purge demo from 6 years ago. Hit the 'T' key. You'll see the rigid structures. Hit 'T' again, you'll see object features. Try laying the 'X' on its side (ijkl rotates obj) on top of the cube. You'll see periodic impulses to certain edges. That's when the deformation or response is applied. It blinks on and off with the impulses. Hope this helps you.
[attachment=10029:X-Purge-Demo-Bin.zip]

##### Share on other sites
Assuming your colliding object has some sort of velocity-vector/tangent, you can interpret the separating axis as a plane of impact's normal.

e.g. an elastic response: vec = vec - 2 * axis * dot(axis, vec)

##### Share on other sites
right, except that's not gonna solve contact forces...

##### Share on other sites

Assuming your colliding object has some sort of velocity-vector/tangent, you can interpret the separating axis as a plane of impact's normal.

e.g. an elastic response: vec = vec - 2 * axis * dot(axis, vec)

I guess when objects are colliding there is no separating axis.

And also if we take a very simple example of two spheres colliding and the axis is normal to the tangent plane at the point they touch, your calculations are not physically correct.

1. 1
2. 2
Rutin
20
3. 3
khawk
16
4. 4
A4L
14
5. 5

• 11
• 16
• 26
• 10
• 11
• ### Forum Statistics

• Total Topics
633756
• Total Posts
3013709
×