Groups | Search | Server Info | Login | Register


Groups > comp.lang.vrml > #118

Collision Detection VRML MATLAB

Newsgroups comp.lang.vrml
Date 2014-05-05 08:34 -0700
Message-ID <c08fb0f4-b131-48dd-8772-0c0e0f92dc70@googlegroups.com> (permalink)
Subject Collision Detection VRML MATLAB
From Ahsham Ali <hafiz.m.ahsan.ali@gmail.com>

Show all headers | View raw


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. 

Back to comp.lang.vrml | Previous | Next | Find similar


Thread

Collision Detection VRML MATLAB Ahsham Ali <hafiz.m.ahsan.ali@gmail.com> - 2014-05-05 08:34 -0700

csiph-web