예제 #1
0
        public override SimElementDefinition saveToDefinition()
        {
            var definition = new BEPUikSwingLimitDefinition(Name)
            {
                MaximumAngle = limit.MaximumAngle,
                AxisA        = limit.AxisA.toEngineVec3(),
                AxisB        = limit.AxisB.toEngineVec3()
            };

            setupLimitDefinition(definition);
            return(definition);
        }
예제 #2
0
 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);
 }
예제 #3
0
 public SwingLimitRenderer(BEPUikSwingLimitDefinition definition)
 {
     this.definition = definition;
 }