How can I change SpringJoint2D's anchor points in script?

LAST EDIT: Problem pinpointed, but not solved. When I rotate the body the wheels rotate with it, BUT the springJoint2D anchorpoints are hardcoded… Meaning the wheels will get back to original position due to physics. Any workarounds?

EDIT: It is an object with rigidbody2D component and 6 springjoint2D’s attached to it (3 per wheel)

Still no answers…
bump
bump

Wondering if there is a way to do this with GetComponents

Ok nevermind this did the trick :slight_smile:

var joints = GetComponents(SpringJoint2D);
for(var joint: SpringJoint2D in joints){
	var temp = joint.anchor;
	joint.anchor = Vector2(-temp.x,temp.y);
}