Hi Guys,
I recently started using Box2d for my application and I think is really good, I am wondering if somebody would help me to solve my problem.
I need to have a body following another one like a car training another one, I have been trying with a distance joint but the problem is that its not rigid
so if the trainer car hits an obstacle the second body start to move around the first one and this is not obviously the expected behaviour.
I tried to use a weldJoint but the two body are one on top of another so it's not good, trying to change the anchoor point did not get me
the desired effect(it seems a different anchor pos does not modify at all the positions )
I am doing something wrong? is there another way to do it?
Eventually what I need is a joint behaving like a iron bar connecting the two bodies.
cheers
I recently started using Box2d for my application and I think is really good, I am wondering if somebody would help me to solve my problem.
I need to have a body following another one like a car training another one, I have been trying with a distance joint but the problem is that its not rigid
so if the trainer car hits an obstacle the second body start to move around the first one and this is not obviously the expected behaviour.
I tried to use a weldJoint but the two body are one on top of another so it's not good, trying to change the anchoor point did not get me
the desired effect(it seems a different anchor pos does not modify at all the positions )
I am doing something wrong? is there another way to do it?
Eventually what I need is a joint behaving like a iron bar connecting the two bodies.
cheers