Groups | Search | Server Info | Login | Register


Groups > comp.lang.vrml > #118

Collision Detection VRML MATLAB

X-Received by 10.58.22.166 with SMTP id e6mr17833993vef.6.1399304057325; Mon, 05 May 2014 08:34:17 -0700 (PDT)
X-Received by 10.140.36.6 with SMTP id o6mr16733qgo.26.1399304057262; Mon, 05 May 2014 08:34:17 -0700 (PDT)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!ih12no603662qab.1!news-out.google.com!du2ni21233qab.0!nntp.google.com!ih12no603656qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.vrml
Date Mon, 5 May 2014 08:34:17 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=175.110.138.218; posting-account=Vo5K-AoAAABxKgmRweJIwHqeb4Y7m57Z
NNTP-Posting-Host 175.110.138.218
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <c08fb0f4-b131-48dd-8772-0c0e0f92dc70@googlegroups.com> (permalink)
Subject Collision Detection VRML MATLAB
From Ahsham Ali <hafiz.m.ahsan.ali@gmail.com>
Injection-Date Mon, 05 May 2014 15:34:17 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 1449
X-Received-Body-CRC 1239315274
Xref csiph.com comp.lang.vrml:118

Show key headers only | 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