I created a configurablejoint within a script and I am trying to alter lowAngularXLimit. In the scripting API manual I see that the way to alter this is a struct called SoftJointLimit. So I tried this because I am not really sure how to make the struct. Please correct me and let me know what I am doing wrong.
struct softjoint {
var limit = 0;
var spring = 9;
var damper = 0;
var bouncyness = 0;
}
joint.lowAngularXLimit = softjoint
Any ideas I never worked with struct before?
I also tried
joint.lowAngularXLimit = SoftJointLimit(0,9,0,0);