Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Collision Detection VRML MATLAB

19 views
Skip to first unread message

Ahsham Ali

unread,
May 5, 2014, 11:34:17 AM5/5/14
to
I want to detect the collision of specific objects, I'm currently using their difference for that sake, but its only works on one axis at a time, I'm doing this on y-axis currently.
My Code:
if ((abs(Obj1.translation(2)-Obj2.translation(2))<=Obj2.translation(2)) )
CollisionCount=CollisionCount+1;
end

How I can improve this, other techniques are also favorable for me, as the two objects haven't well defined shapes, like circle or square.
0 new messages