• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to animate a ball inside a jar using physics and collision

Community Beginner ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

Hello,

I have a character that is an old school cartoon gumball dispenser (vector art created in AI). The head of the character is a glass bottle, as the head moves, I would love to move a couple of gumballs around inside the bottle freely bumping into each other. When I try to set this up the gumballs just immediately fall out onto the floor. Can I make the jar shape (the character's head) the physical boundary for the gumballs and have the gumballs react to the jar (head) moving around? Even if it is just one gumball that would still be cool.

 

Thanks!

Jeff

 

 

TOPICS
How to , Puppet movement , Rigging

Views

183

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

What Collide and Dynamic tags have you added to the ball and head? (I think the ball needs both and the jar needs collide.) I am not sure if it will cope with a closed container however - you might try first with an open ended container (a "U" shape) and see if that works, then if it stops working when its closed... ummm... time for plan B! But start with plan A and see how far you can get.

 

Plan B starts experimenting with shared puppets. I have never done this, but wondering if you can trick it by superimposing a second character over the top of the real character, so it does all the physics with an open top. I suspect a closed object is just too hard for CH to understand. I think it just works out the contour of the shape. I guess you could try tricks like independent jar lid, to see if it ignores independence with collisions etc. Its all about getting a continuous shape that is not a hole i think.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

Thank you! Yeah, I did add both to the ball and just collide to the head, I am probably asking CH to do more than it is capable of at least right now? I like your idea of the U shape, I can do that and make sure my animation doesn't bounce them too far so they pop out? Plan B, I'll need to do a little research on how to use shared puppets!

 

Thank you again!

Jeff

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

So, I created some high quality artwork. I think you can do what you are after! Kinda. As long as the head moves slowly (the balls came out of the head otherwise, which could be funny I guess).

 

alank99101739_0-1597548401984.png

If the blue top is in the same layer as the green, the red dot gets pushed out as I suspected. But if the blue top is independent, marked with collide as well, then the ball gets trapped inside! Because there are no dangles etc on the blue layer, it just stays in place.

 

But if you move the jar too quickly, then the ball can jump through the sides of the container. Oops!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

sweet! My character doesn't have to get crazy with animation, just a little movement as he talks!!! Let me try this you are awesome thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines