public override SimElementDefinition saveToDefinition() { var definition = new BEPUikSwingLimitDefinition(Name) { MaximumAngle = limit.MaximumAngle, AxisA = limit.AxisA.toEngineVec3(), AxisB = limit.AxisB.toEngineVec3() }; setupLimitDefinition(definition); return(definition); }
public BEPUikSwingLimit(BEPUikBone connectionA, BEPUikBone connectionB, BEPUikSwingLimitDefinition definition, String name, SimObject instance) : base(connectionA, connectionB, name, instance) { limit = new IKSwingLimit(connectionA.IkBone, connectionB.IkBone, definition.AxisA.toBepuVec3(), definition.AxisB.toBepuVec3(), definition.MaximumAngle); setupLimit(definition); }
public SwingLimitRenderer(BEPUikSwingLimitDefinition definition) { this.definition = definition; }