Object isn't rotating[Solved]

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Darkon76
Posts: 23
Joined: Mon Mar 27, 2017 12:33 pm

Object isn't rotating[Solved]

Post by Darkon76 »

Hello

I have a problem when one object collides with another instead of rotating and continue moving it just stop,

http://imgur.com/a/CoLAI


If you look at the link, you can see the box hitting another and rotates a little and stop, I need that it continues moving. The yellow box is moved with the friction of an invisible platform at constant linear velocity.

Is there a way to set the angular friction to 0 for the platform? Or other configuration that allow me to rotates the yellow box when it hits another kinematic object.

Regards.
Last edited by Darkon76 on Thu May 11, 2017 8:53 pm, edited 1 time in total.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Object isn't rotating

Post by Norbo »

First thing to try would be decreasing CollisionResponseSettings.TwistFrictionFactor. It's global, but the default of 1 is a bit aggressive, so setting it to 0.5 or 0.33 might be totally fine for the whole simulation.
Darkon76
Posts: 23
Joined: Mon Mar 27, 2017 12:33 pm

Re: Object isn't rotating

Post by Darkon76 »

Hello
Thanks for the quick answer.

It worked.
Post Reply