- Home /
How to create a hole guide, like a bridge or finger guide on a pool cue?
I'm trying to find the best solution to make a hole constraint for a stick or pool cue to be guided by. If the hole constraint is a hand and the pool cue is standing on the floor, the constraint must also limit the angular movement of the cue in the hand. At some point, when the hand is gripping hard enough, a vertical movement will actually lift the cue.
I have been trying to use a combination of colliders and ConfigurableJoint to achieve this, with limited success. When the hole is so narrow that the cue is colliding with opposing colliders in the hole I create a ConfigurableJoint to better control the cue. I recalculate the anchor point each frame so that it is in the point which is the center of the hand and at the point on the cue that is in the hand. All of this actually work as intended when I lock the vertical motion on the joint, and limit the two other motions to the reflect the tightness of the grip. But this state is when actually lifting the cue.
When not lifting, I set the vertical motion to free, and then the limits that should hold the cue inside the hand is no longer working as intended as the cue is able to drift outside the limits set in the configurable joint.
And I also have problems limiting the angular limits to reflect the limitations a grip has on the cue.
I am trying to create a multi purpose gripper of stick and wonder if anyone has some hints and possible approaches to consider, with or without ConfigurableJoint.
To sum up: I am looking for a solutions/hints on how to enforce that the center point of the cue, 1.5 meter from the base, must be within 1 cm from the center of the hand, and be aligned with the hands grips within 20 degrees.
Your answer
Follow this Question
Related Questions
Configurable joint around 2 axis 3 Answers
Create SpringJoint with specfic distance or ConfigurableJoint 3 Answers
Can configurable joint with angular limits use slerp drive? 1 Answer
Distribute distances between configurable joint links 0 Answers
Set ConfigurableJoint targetAngularVelocity towards targetRotation 0 Answers