Login | Register 

Simple Collision Detection

Still a little green? Ask your beginner's questions here

Simple Collision Detection

Postby Vincelapince » Tue Jul 09, 2019 11:44 am

Hi there !

I'm working on an installation with a grid of robots arms.

I've setup a simulation tool in TD that's working pretty well, but i'm looking for an easy way to know if my robots are intersecting ( in order to prevent robots breaking in real life! )

Any idea ? (for the moment, my robots are rigged instanced geo )

Thanks !
Posts: 9
Joined: Fri Feb 10, 2017 7:24 am

Re: Simple Collision Detection

Postby nettoyeur » Tue Jul 09, 2019 6:48 pm

You can use the Object CHOP to get the distance from a point on your robot arm to any other point in space (maybe another robotarm). You can feed that distance to a Logic CHOP (set it to 'off when outside bounds' mode) and set those bounds to the minimum safety distance. So whenever the distance becomes lower than the safety distance, the Logic CHOP will output 1, otherwise 0.

Another more advanced option is to use the Bullet Physics engine in TD for your robot arms. You could make an invisible bigger virtual arm around your robot arms, and have those collide in TD in the Bullet Solver, so the virtual arms collide before the real ones do.

find some examples for Object CHOP and the Bullet physics engine if you click in main menu Help->Operator Snippets (bullet solver is under COMPs)
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
Posts: 1151
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Simple Collision Detection

Postby Vincelapince » Wed Jul 10, 2019 4:45 am

Hey Thanks, i definitely will try the object CHOP approach !
Should do the job as i have only to test the led bar carried by the robots ( 2 extremities).

Thanks for your help !
Posts: 9
Joined: Fri Feb 10, 2017 7:24 am

Return to Beginners

Who is online

Users browsing this forum: No registered users and 14 guests