Archived

This topic is now archived and is closed to further replies.

Swept volume issues.

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

Recommended Posts

Since my current engine uses OBBs as the main source of collision for dynamic objects, I decided to write some swept volume code to make it "more better". What I decided to do was take into account (project) the velocity''s influence in each test. Meaning when I figured in the sum of the projections of the boxes I would project the velocity onto the current separating axis too. This is when things got odd. The way I set up tests is one box is axis-aligned and the other is rotated and translated by a matrix. Since the matrix is colum major, I was projecting the velocity onto the colums to do the tests. This turned out to be incorrect. To get the right projection, (like zero if the velocity being tested is orthogonal to the separating axis) I had to project the velocity onto the row of the matrix. I made up a bunch of orthogonal unit matricies on my notepad to see why this was, and came up with no answer. The reason I mention this is because I have to project the velocity onto the 9 axis of edge combinations, and I can''t come up with a proper solution. Does anyone have an Idea of what''s going on?

Share on other sites
You know what's odd?

That's really close to the solution that I came up with on my own, six additional tests and everything.

Small victory for me, I guess I thought I'd share. I guess my Computer Science degree and my "almost" math degree might have helped after all.

Heh.

[edited by - BarnyardMessiah on January 11, 2004 12:41:05 AM]

Share on other sites
you know you also need to use the velocity as a separation axis? That''s one of the additions from the intersection detections to the swept collision tests.

Share on other sites
Right,

I figured that from the onset, I just seemed to work backwards from the direction that the PDF took, that''s all.

Share on other sites
tends to throw your head in a spin, if you get the directions the wrong way around. Still, if you came up with the solution yourself, good effort

[edited by - oliii on January 13, 2004 8:59:50 AM]

1. 1
2. 2
3. 3
Rutin
18
4. 4
khawk
14
5. 5
frob
12

• 9
• 11
• 11
• 23
• 12
• Forum Statistics

• Total Topics
633659
• Total Posts
3013216
×