Skip to content

Component boxROI and the gravity #196

Discussion options

You must be logged in to vote

Hi,

I investigated the scenes in this folder.

The behavior you observe when the box is away from the object is due to the RestShapeSpringsForceField. It uses the indices from the BoxROI, but the list of indices is empty. When the list of indices in RestShapeSpringsForceField is empty, the whole object is used. So, the springs acts on every point of the mesh. And it is much stronger than the mass. That's why the object does not move.
Remove the RestShapeSpringsForceField or reduce its stiffness, and you will see the object falling.

When you have such a situation, I recommend to enable printLog on some key components. It may help you understand what is going on.

Alex

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by andersonnardin
Comment options

You must be logged in to vote
1 reply
@alxbilger
Comment options

Comment options

You must be logged in to vote
1 reply
@alxbilger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants