6dof motor targetVelocity/Position?

pfanne
Posts: 7
Joined: Fri Dec 02, 2011 10:21 am

6dof motor targetVelocity/Position?

Post by pfanne »

Hi there,
I have a few questions concerning the 6dof motors:
  • When setting the targetVelocity of the btTranslationalLimitMotor to 0 it still slowly sinks to the ground due to gravity.
    It doesn't matter how high m_maxMotorForce is set, the object will steadily move in direction of gravity.
    How can this be fixed?
  • Is there a way to set a targetPosition for the motor?
    If not: Where would be good place to put an update method that changes the target velocity accordingly every simulation step?
User avatar
Dr.Shepherd
Posts: 168
Joined: Tue Jan 04, 2011 11:47 pm

Re: 6dof motor targetVelocity/Position?

Post by Dr.Shepherd »

pfanne wrote:Hi there,
I have a few questions concerning the 6dof motors:
  • When setting the targetVelocity of the btTranslationalLimitMotor to 0 it still slowly sinks to the ground due to gravity.
    It doesn't matter how high m_maxMotorForce is set, the object will steadily move in direction of gravity.
    How can this be fixed?
  • Is there a way to set a targetPosition for the motor?
    If not: Where would be good place to put an update method that changes the target velocity accordingly every simulation step?
The first question, is your motor enabled?

The second question, I am not sure, sorry man
pfanne
Posts: 7
Joined: Fri Dec 02, 2011 10:21 am

Re: 6dof motor targetVelocity/Position?

Post by pfanne »

Dr.Shepherd wrote:The first question, is your motor enabled?
Yes, the moter is enabled, otherwise the object would fall normally.
With the motor enabled it just drifts slowly to the ground.
dern23
Posts: 26
Joined: Thu Oct 04, 2012 1:58 pm

Re: 6dof motor targetVelocity/Position?

Post by dern23 »

Just wanted to confirm it also occurs for the RotationalMotor as well. I'm wondering if this is related to the changes made last year to force integration, or if it was always present.
wiltzutm
Posts: 1
Joined: Fri May 10, 2013 8:18 am

Re: 6dof motor targetVelocity/Position?

Post by wiltzutm »

I'm having the same problem with bullet version 2.77 so the problem isn't really in new code. Actually it's good that you posted the problem here because I thought it was some sort of a bad feature.