Page 1 of 1

How to use physics for a moving glass of balls

Posted: Thu Nov 25, 2021 3:25 am
by peng
Hi Moho experts,

I have a problem animating a moving glass of ice cubes using the physics simulation. ( refer to the attached image )

I am able to simulate physics if the glass doesn't move, however the physics breaks when I start animating the glass.

Could anyone tell me a way to keep the physics simulation of the ice cubes when I animate the glass?

Thank you very much :)

Cheers,
Peng

Image

Re: How to use physics for a moving glass of balls

Posted: Thu Nov 25, 2021 5:11 am
by synthsin75
It helps to have a much thicker, non-rendering vector for the glass, to have more width the ice would have to clip through. But you really have to disable physics while moving the glass and animating the ice manually. Then once it stops again, you can reenable physics. I've had some success disabling the physics for a couple of frames every four frames or so, so it recalculates the "non-moving" position of the glass. But it would still require some clean up.

Re: How to use physics for a moving glass of balls

Posted: Thu Nov 25, 2021 6:14 am
by peng
Thank you for the info, it seems that moho cannot simulate continuous collision between 2 moving objects. Am I right?

Re: How to use physics for a moving glass of balls

Posted: Thu Nov 25, 2021 6:41 am
by synthsin75
Yeah, Moho can only simulate collisions between physics objects, whether regular or non-moving. That's why physics on a maually animated object set to non-moving will override the animation and it will stay still.

Re: How to use physics for a moving glass of balls

Posted: Thu Nov 25, 2021 7:39 am
by peng
got it thank you very much