public override SimElementDefinition saveToDefinition() { var definition = new BEPUikDistanceJointDefinition(Name); setupJointDefinition(definition); return(definition); }
public BEPUikDistanceJoint(BEPUikBone connectionA, BEPUikBone connectionB, BEPUikDistanceJointDefinition definition, String name, SimObject instance) : base(connectionA, connectionB, name, instance) { joint = new IKDistanceJoint(connectionA.IkBone, connectionB.IkBone, connectionA.Owner.Translation.toBepuVec3(), connectionB.Owner.Translation.toBepuVec3()); setupJoint(definition); }