Foosball Bar Simulation and Constraints
Posted: Wed Jan 06, 2010 1:56 pm
I'm trying to simulate the bar of a foosball.
Currently I'm doing this as such.
1. Approximated the body with a compound body for the actual players and the bar.
2. Added two rotation axis constraints to lock the X-axis, Y-axis down.
I still need one more type of constraint which needs to constraint movement to only the Z-axis.
So basically any applied force from the XZ direction needs to be only apply the Z direction force. I've tried to accomplish this with a SingleBodyConstraint, I've tried various things such as taking the linearVelocity and removing the XY components of the velocity with some degree of achievement. None which make it seem realistic. Looking for some direction if possible on how these constraints would need to be implemented.
Thanks,
Evan
Currently I'm doing this as such.
1. Approximated the body with a compound body for the actual players and the bar.
2. Added two rotation axis constraints to lock the X-axis, Y-axis down.
I still need one more type of constraint which needs to constraint movement to only the Z-axis.
So basically any applied force from the XZ direction needs to be only apply the Z direction force. I've tried to accomplish this with a SingleBodyConstraint, I've tried various things such as taking the linearVelocity and removing the XY components of the velocity with some degree of achievement. None which make it seem realistic. Looking for some direction if possible on how these constraints would need to be implemented.
Thanks,
Evan