How to use physics for a moving glass of balls

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
peng
Posts: 57
Joined: Mon Oct 18, 2021 3:13 am

How to use physics for a moving glass of balls

Post 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
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

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

Post 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.
peng
Posts: 57
Joined: Mon Oct 18, 2021 3:13 am

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

Post by peng »

Thank you for the info, it seems that moho cannot simulate continuous collision between 2 moving objects. Am I right?
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

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

Post 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.
peng
Posts: 57
Joined: Mon Oct 18, 2021 3:13 am

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

Post by peng »

got it thank you very much
Post Reply