Home | Tutorials | Wiki | Issues
Ask Your Question
0

models within a box are jittery. How to prevent the vibration? [closed]

asked 2019-09-30 17:31:23 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I am trying to make a box that contains multiple balls. However as soon as I add a second layer of balls, the balls in the first layer begin to vibrate. Is there any specific values that i need to add to prevent this from happening.

edit: It seems that the balls do not have enough space in the lower layer and begin vibrating instead of rearranging themselves.

Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by adheeshenoy
close date 2019-10-25 15:57:32.469051

Comments

probably you should set a parameter called max_depth, ex:

<collision name="collision0">
      <surface>
        <contact>
          <ode>
            <min_depth>0.01</min_depth>
          </ode>
        </contact>
     </surface>
</collision>

You can check this link for a comparison between different values of max_depth

dkoung gravatar imagedkoung ( 2019-10-01 09:17:02 -0600 )edit

@dkoung Thanks for the response. I tried the following and it did not solve the problem. The issue I observed is that there is not enough space for all the balls in the lower layer and so they collide with each other instead of rearranging themselves.

adheeshenoy gravatar imageadheeshenoy ( 2019-10-01 13:01:52 -0600 )edit

Edit to my previous response: it's min_depth not max_depth, sorry.

Also try max_vel=0.0, it is maximum interpenetration error correction velocity. By setting it to 0, interpenetrating objects will not be pushed apart.

<collision name="collision0">
  <surface>
    <contact>
      <ode>
        <min_depth>0.01</min_depth>
        <max_vel>0.0</max_vel>
      </ode>
    </contact>
  </surface>
</collision>
dkoung gravatar imagedkoung ( 2019-10-02 02:46:05 -0600 )edit

@dkoung Worked like a charm. Thanks a lot!

adheeshenoy gravatar imageadheeshenoy ( 2019-10-02 16:54:46 -0600 )edit

@adheeshenoy You're welcome.

dkoung gravatar imagedkoung ( 2019-10-03 03:41:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-04 15:35:09 -0600

adheeshenoy gravatar image

So the answer is: Making max_vel=0.0 and adding min_depth to a really small value like 0.01. For example:

<collision name="collision0">
<surface>
    <contact>
      <ode>
        <min_depth>0.01</min_depth>
        <max_vel>0.0</max_vel>
      </ode>
    </contact>
  </surface>
</collision>

Thank you to dkoung for the answer.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-09-30 17:31:23 -0600

Seen: 72 times

Last updated: Oct 04