Original Post
I have the local-to-world transform matrix for a model.
I also have the OBBtree for this model.
Now I want to implement the intersection algorithm of two OBB (A,B)
Supposing that both (fixed) OBB are given relative to the same coordinate system .
question:
An axis v is a separating axis if
| v * c | > | v * ha | + | v * hb |
when:
* : dot product
c: vector from A''s center to B''s center
ha: extent vector of A
hb: extent vector of B
v : potential separating axis
is correct the above-mentioned ???
If it is,
how would it be when both OBB has arbitrary rotation and translation?
thanks in advance.
(sorry for my bad english).