Page 1 of 1

Dogbot question - ears

Posted: Sun Jan 06, 2013 8:25 pm
by sergiusz308
Hi, I'm playing around with dogbot demo and can't find a proper way to change "ears" behavior - I want them feel like they weight more, less bouncy.

I tried increasing their weight but it didn't help - with weight around 30-50 they simply overload dogbot, pushing it down, over the head.

I tried increasing DampingConstant in springsettings for ballsocket ears are connected to head with but no visible effect either: values I tried are 3 and 10 times default DampingConstant value.

What I'm doing wrong here?

Thanks,
S.

Re: Dogbot question - ears

Posted: Sun Jan 06, 2013 8:38 pm
by Norbo
A BallSocketJoint only manages the linear degrees of freedom at a connection point, so changing its damping constant won't affect rotation.

If you want to damp the angular motion, an AngularMotor with a higher softness value would do the trick. For velocity motors, softness is the inverse of damping. In other words, if softness is 0, damping is infinity (it will try to keep it from moving at all), while if softness is high, then damping is near zero (the motion will barely be affected).

There's also the option of just setting the ear's AngularDamping to a larger value, but this is less physically correct than using a constraint.

Re: Dogbot question - ears

Posted: Sun Jan 06, 2013 10:07 pm
by sergiusz308
Thanks for your reply Norbo.

AngularMotor (I attached it just like in ActionFigureDemo) worked fine. Setting AngularDamping on entity worked too but didn't give expected result.