Hi,
I'm using a simulation world when a few cylinder shaped dynamic objects and a static boxShaped wall object.
I think when a collision occurs between cylinder objects and the wall object, shape of the cylinders are changing like a bending effect, cylinder loses it's "cylinder" shape when bouncing from the wall. And also the two objects contact with each other for more than one simulation steps.
Is it possible to prevent this bending effect, i mean can i make cylinder object bounce from the wall without losing it's original shape? I think bounciness value could change this, but when i reduce bounciness value, bouncing action would not be realistic.
Thanks for help.
about RigidBody shape bending on collision
-
- Posts: 6
- Joined: Tue Feb 22, 2011 1:47 pm
about RigidBody shape bending on collision
Last edited by manuyavuz on Sun Feb 27, 2011 7:28 am, edited 1 time in total.
-
- Posts: 38
- Joined: Thu Jul 08, 2010 12:52 am
Re: about RigidBody shape bending on collision
I'm not sure if I understand correctly, but maybe rigidbody->setAngularFactor is what you're looking for.
http://bulletphysics.org/mediawiki-1.5. ... dinal_axes
http://bulletphysics.org/mediawiki-1.5. ... dinal_axes
-
- Posts: 6
- Joined: Tue Feb 22, 2011 1:47 pm
Re: about RigidBody shape bending on collision
Thanks for the answer, but restricting linear or rotational motion is not i mean.
I mean that is there a way to restrict changes in the cylindiric shape of the cylinder objects on collision.
I think a numerical explanation will be more clear:
These two are the coordinate values of my cylinder object and my wall when a contact occurs between them.
object0 pose:: x: 395.000000 y: 50.000000
object1 pose:: x: 363.982513 y: 31.947683
Here object0 is the wall, and object1 is the cylinder shaped dynamic object.
Here is another two value which again returned during the same collision:
object0 pose:: x: 395.000000 y: 50.000000
object1 pose:: x: 363.533966 y: 31.947683
As can be seen, x values of the cylinder is different between them. I think it's only possible if cylinder loses it's original shapes and turns to an ellipse like shape, on collision.
My question is can I prevent this difference?
I mean that is there a way to restrict changes in the cylindiric shape of the cylinder objects on collision.
I think a numerical explanation will be more clear:
These two are the coordinate values of my cylinder object and my wall when a contact occurs between them.
object0 pose:: x: 395.000000 y: 50.000000
object1 pose:: x: 363.982513 y: 31.947683
Here object0 is the wall, and object1 is the cylinder shaped dynamic object.
Here is another two value which again returned during the same collision:
object0 pose:: x: 395.000000 y: 50.000000
object1 pose:: x: 363.533966 y: 31.947683
As can be seen, x values of the cylinder is different between them. I think it's only possible if cylinder loses it's original shapes and turns to an ellipse like shape, on collision.
My question is can I prevent this difference?
-
- Posts: 43
- Joined: Mon Jan 03, 2011 4:26 pm
Re: about RigidBody shape bending on collision
The cylinder will never change shape, but it might be interpenetrating slightly.
I think you could try increasing the restitution or something.
I think you could try increasing the restitution or something.