Skip to content

Handling obstacles with kinematic bodies #355

Answered by jrouwe
MDZhB asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, in that case I'd suggest using a SixDOFConstraint. Configure 1 axis (TranslationY, you can configure that to point in any direction using mAxisY1 and 2) to allow translation, configure 1 axis (RotationX, you can define that to point in any direction as long as it's perpendicular to mAxisY1/2 by setting mAxisX1 and 2) to allow rotation and keep all the other axis fixed. Give the translation and rotation motors and set the velocity of those motors to drive them. SixDOFConstraintTest has examples and it has a 'Test Settings' menu that allows you to play around with limits. Note that it is also possible to e.g. unlock the TranslationZ channel if you want your object to move in a plane rat…

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MDZhB
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MDZhB
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants