shaking body again

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

shaking body again

Postby allked » Mon Dec 22, 2014 1:27 pm

I've searched the forum and found this link which has the same problem like mine(I think):
viewtopic.php?f=9&t=6974&p=48357&hilit=shake#p48357

I've tried to setup a material with small fricition like this:
NewtonMaterialSetDefaultFriction ( m_world,defaultMaterialID,defaultMaterialID,0.08f,0.04f );
NewtonMaterialSetDefaultElasticity ( m_world,defaultMaterialID,defaultMaterialID,0.04f );
NewtonMaterialSetDefaultSoftness ( m_world,defaultMaterialID,defaultMaterialID,0.05f );
NewtonMaterialSetDefaultCollidable ( m_world, defaultMaterialID,defaultMaterialID, 1 );

still not work, body is shaking,even if I set the gravity to 0,0,0. some of the body can even shake in the air,what would be the problem? thankyou. I don't know how to upload video so this is a gif image to show my problem:
Image
allked
 
Posts: 8
Joined: Thu Apr 09, 2009 2:21 pm

Re: shaking body again

Postby Julio Jerez » Mon Dec 22, 2014 1:38 pm

On that thread the problem was because the objects was landing on a spheres, and spheres by design can only generate one contact.
is that the problem you have?

make a youtube video?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: shaking body again

Postby JoeJ » Mon Dec 22, 2014 4:34 pm

Seems there's a large box as ground.
Are those boxes super small, or do they have other extreme values (mass...)?
Do you apply any forces or velocities to them except gravity?
Can you post creation code for a box?
User avatar
JoeJ
 
Posts: 1489
Joined: Tue Dec 21, 2010 6:18 pm

Re: shaking body again

Postby allked » Mon Dec 22, 2014 6:31 pm

Code: Select all
void createBox ( float x,float y,float z,float width,float height,float length,float mass,bool active )
{
   NewtonCollision* collision = NewtonCreateBox ( m_world,width ,height,length,0,NULL );
        omMat mat;
        mat.identity();
        mat.translate(x,y,z);
        NewtonBody* body = NewtonCreateDynamicBody ( m_world,collision,&mat.mat[0] );
   NewtonBodySetMassProperties ( body,mass,collision);
}


createBox ( 0,60,0,4,4,4,4,true ); // I am creating box like this, and the ground is a big box too,with :
createBox ( 0,0,0,50,10,50,0,true ); is the object to small? I tried big value like 100 for a small box,and 1000 for ground,but still shakes with slow falling speed,although a little bit better
ps: How to record video under linux?
allked
 
Posts: 8
Joined: Thu Apr 09, 2009 2:21 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron