Hmm, i have a problem with my implementation. If seems if i move the second object - (Displacement of B) everything goes off.
The resulting projection / time of factor is incorrect - because of the relative velocity. Adding the velB to the relative velocity is no solution after all.
What i am looking for is a solution to find always the correct projection (Multiply vel A to a amount that its just touching Obj B, even when obj B moves then it shoud touches the movement of Obj B). Is there a solution for that? Currently i could not come up with anything working at all ![]()
What i am trying to achive is to create a speculative contacts system using separating axis theorem. The essence of that technique requires that obj A vel must be decrease to a level to just touch obj A even if obj B is moving. Basically the Time-Of-Impact factor (Earliest time enter) takes care of that by multiplies the relative velocity (vA - Vb) to fix that.
To see that in real, check out my latest update: http://jsfiddle.net/sbYnp/6/
See the green box is wrong projected, cause it uses relative velocity.
It would be really great is someone can push me in the right direction.
Thanks,
Final

Find content
Not Telling