Object isn't rotating[Solved]

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

Object isn't rotating[Solved]

Post by Darkon76 » Thu May 11, 2017 4:41 pm

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: 4529
Joined: Tue Jul 04, 2006 4:45 am

Re: Object isn't rotating

Post by Norbo » Thu May 11, 2017 6:07 pm

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: 5
Joined: Mon Mar 27, 2017 12:33 pm

Re: Object isn't rotating

Post by Darkon76 » Thu May 11, 2017 8:53 pm

Hello
Thanks for the quick answer.

It worked.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest