Defining set in ManageCollision

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Defining set in ManageCollision

George.B
Hello guys,

I want to define contact. So, I am using the plug-in "ManageCollision". I just want to define the contact for some specific blocks. I define a set named "blocks" and add it to the input file as:
<PlugIn Id="_ManageCollision" Between="Body/Body" BroadPhase="AABBTree" NarrowPhase="WithShape" CallBack="Standard" Set="blocks" Stiffness="1e10" />

But, no contact happens.
What do you think the problem is?
Thanks for your help
Reply | Threaded
Open this post in threaded view
|

Re: Defining set in ManageCollision

damien
Hello, I suppose that your Set "block" is empty
Reply | Threaded
Open this post in threaded view
|

Re: Defining set in ManageCollision

George.B
It is not empty. Because, in granoo-viewer, The defined set "blocks" shows the blocks correctly.

The set is defined as:

auto& blocks = * new DEM::ElementT<Shape::Polyhedron>::Set("blocks");
for (unsigned int i=0;i<10;i++)
{
auto& firstDE = globalSet(i);
blocks.AddItem(firstDE);
}
Reply | Threaded
Open this post in threaded view
|

Re: Defining set in ManageCollision

Damien André
Administrator
Hello, please remove Set="blocks" and see what happens
Reply | Threaded
Open this post in threaded view
|

Re: Defining set in ManageCollision

George.B
I remove Set="blocks" and it works. When I add Set="blocks", it does not work.
Reply | Threaded
Open this post in threaded view
|

Re: Defining set in ManageCollision

Damien André
Administrator
Sorry, there is no way, it means that your set is empty