After collision car greatly jumps [ video ]

FDsagizi
Posts: 4
Joined: Tue Oct 30, 2012 10:16 am

After collision car greatly jumps [ video ]

Post by FDsagizi »

Hi!

Set body->setRestitution( 0 ); but sometimes it jumps

http://youtu.be/6P-_7knBRdY

What should I do to stop it jumping?

PS. Sorry for my English :oops:
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: After collision car greatly jumps [ video ]

Post by Erwin Coumans »

It looks like the car is colliding against internal triangle edges. You can filter out the wrong collision normals, for example using the btInternalEdgeUtility.
See Bullet/Demos/InternalEdgeDemo.

Also it can help to enable 'split impulse'

Code: Select all

world->getSolverInfo().m_splitImpulse=true;
Also, set the restitution of the car chasses to zero, and make sure to use the latest Bullet version.
Hope that helps,
Erwin
FDsagizi
Posts: 4
Joined: Tue Oct 30, 2012 10:16 am

Re: After collision car greatly jumps [ video ]

Post by FDsagizi »

Erwin Coumans wrote:It looks like the car is colliding against internal triangle edges. You can filter out the wrong collision normals, for example using the btInternalEdgeUtility.
See Bullet/Demos/InternalEdgeDemo.

Also it can help to enable 'split impulse'

Code: Select all

world->getSolverInfo().m_splitImpulse=true;
Also, set the restitution of the car chasses to zero, and make sure to use the latest Bullet version.
Hope that helps,
Erwin
Bullet version 2.81 - rev2613

look exemple btInternalEdgeUtility, and i dont undersnad why is need ? Enable or disabe visual no changes

next

i add this code for my gContactAddedCallback

Code: Select all

btAdjustInternalEdgeContacts(cp,colObj1Wrap,colObj0Wrap, partId1,index1);
no changes ... I use CF_CUSTOM_MATERIAL_CALLBACK

next

add

Code: Select all

world->getSolverInfo().m_splitImpulse=true;
no visual changes
Also, set the restitution of the car chasses to zero
All problem not in wheels, and in that that at lateral blows the car strongly pushes away. Here video without wheels

http://youtu.be/JIz7xXNBQzs