# collision of two objects

**URL:** https://discourse.vtk.org/t/collision-of-two-objects/1519
**Category:** Development
**Created:** [August 8, 2019, 10:38am UTC](https://discourse.vtk.org/t/collision-of-two-objects/1519 "2019-08-08T10:38:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Vahid](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/v/96bed5/32.png) [@Vahid](https://discourse.vtk.org/u/Vahid)
#### Post date: [August 8, 2019, 10:38am UTC](https://discourse.vtk.org/t/collision-of-two-objects/1519/1 "2019-08-08T10:38:54Z")

</div>

Dear All,  
I imported two objects and I would like to detect the collision of theses objects. After the contact, I want to stop the moving object. Could you please give me some advise on this question ?  
Thanks

---

<div class="post-metadata">

### Author: ![lplavorante](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lplavorante/32/272_2.png) [@lplavorante](https://discourse.vtk.org/u/lplavorante)
#### Post date: [August 8, 2019, 2:14pm UTC](https://discourse.vtk.org/t/collision-of-two-objects/1519/2 "2019-08-08T14:14:30Z")

</div>

HI Vahid!  
I remember there has been a thread with a similiar issue few weeks ago.  
Maybe this is what you are looking for.

> [@find the actor that another actor is intersecting with](https://discourse.vtk.org/t/find-the-actor-that-another-actor-is-intersecting-with/1379):
>
> hi, i have a situation in which i have a sphere in a field of multiple randomly placed cubes, the sphere is controlled by keyboard and when the sphere intersects a cube or collides with a cube i want to change the color of that cube while leaving the rest of the cube as is. i looked for a method that can give the actor that the sphere is colliding with but not able to find it. how can this be achieved? any help would be great Thanks

Greetings

```
Luca

```

---

<div class="post-metadata">

### Author: ![Vahid](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/v/96bed5/32.png) [@Vahid](https://discourse.vtk.org/u/Vahid)
#### Post date: [August 8, 2019, 4:36pm UTC](https://discourse.vtk.org/t/collision-of-two-objects/1519/3 "2019-08-08T16:36:05Z")

</div>

thanks.

---

<div class="post-metadata">

### Author: ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)
#### Post date: [August 9, 2019, 11:32am UTC](https://discourse.vtk.org/t/collision-of-two-objects/1519/4 "2019-08-09T11:32:06Z")

</div>

You can also use `vtkOBBTree`.

---

<div class="post-metadata">

### Author: ![vahid\_rastgoo](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vahid_rastgoo/32/738_2.png) [@vahid\_rastgoo](https://discourse.vtk.org/u/vahid_rastgoo)
#### Post date: [August 11, 2019, 9:03pm UTC](https://discourse.vtk.org/t/collision-of-two-objects/1519/5 "2019-08-11T21:03:26Z")

</div>

Hello good time How to use vtkobbtree for collision or intersection of two stl’s, which method is this class possible?
