## Objects with moving vertex - possible?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

### Objects with moving vertex - possible?

Hi there (tell me if I'm asking this in the wrong place!)

I would like to know how Newton deals with an objects that doesn't have static vertex. For example, a sphere rolling on the ground and every vertex starts to oscilates. Is this possible?

On a second idea, instead of moving vertex, I could make a model with bones moving. Would we still be able to apply physics dynamics to the mesh?

Thanks!
DiegoFloor

Posts: 3
Joined: Mon Jan 05, 2009 9:10 pm

### Re: Objects with moving vertex - possible?

Now that I've read my question again, it's not very clear what I meant!

"a sphere rolling on the ground and every vertex starts to oscilates. Is this possible?"
I can make the sphere's vertex move! What I'm not sure is if Newton sees that.
Another example: I have a cube just sitting there... then I make a horn rapidly grow on the botton face of the cube! intuitively, the cube should gain some vertical speed. Is this simulated? Or the horn is just gonna penetrate the ground?

Thanks again!
DiegoFloor

Posts: 3
Joined: Mon Jan 05, 2009 9:10 pm

### Re: Objects with moving vertex - possible?

Well no and yes. You couldn't do it by changing verticies. What you could do is have multiple bodies joined with hard constraints, then change the relative positioning in the joint (kinematic joint).

So, in your box horn example, you would have two objects, a box and a pyramid which were joined and fixed together in the contraint code. Initially the pyramid would be inside the box (with collision between the two objects switched off). Then in the joint code you would alter the reference points so the relative position changes smoothly and the pyramid starts to come out of the box.

I think a generalised system would need a non-rigid body simulation (Newton 3 I guess )

Joe
JoeWright

Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

### Re: Objects with moving vertex - possible?

I think what Joe is describing is a cloth / soft mesh functionality.
Help improving the Newton Game Dynamics WIKI

JernejL

Posts: 1531
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

### Re: Objects with moving vertex - possible?

Ok! Thanks for the replies

This doesn't seem like a trivial task at all!
I was thinking a different solution. make the verticies move, but use a static collision model. So the movement of the verticies are for visual feedback... well, not only.. I was thinking about checking for collision with the verticies and the ground and apply a force on the object, depending on the intersection.
DiegoFloor

Posts: 3
Joined: Mon Jan 05, 2009 9:10 pm