Warning, /education/step/step/data/tutorials/tutorial4.step is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <!DOCTYPE StepCoreXML> 0003 <world xmlns="http://edu.kde.org/step/StepCoreXML" version="1.0" id="1"> 0004 <name>world1</name> 0005 <color>#ffffffff</color> 0006 <time>33.9199999999995</time> 0007 <timeScale>1</timeScale> 0008 <errorsCalculation>false</errorsCalculation> 0009 0010 <item class="Disk" id="2"> 0011 <name>disk1</name> 0012 <color>#ff000000</color> 0013 <position>(-1.122,-1.3)</position> 0014 <angle>0</angle> 0015 <velocity>(0.349794,0)</velocity> 0016 <angularVelocity>0</angularVelocity> 0017 <mass>1</mass> 0018 <inertia>0.09365</inertia> 0019 <radius>0.432781700167648</radius> 0020 </item> 0021 0022 <item class="Box" id="3"> 0023 <name>box1</name> 0024 <color>#ff000000</color> 0025 <position>(1.272,-1.3)</position> 0026 <angle>0</angle> 0027 <velocity>(-0.349794,0)</velocity> 0028 <angularVelocity>0</angularVelocity> 0029 <mass>1</mass> 0030 <inertia>0.177241666666667</inertia> 0031 <size>(0.5,1.37)</size> 0032 </item> 0033 0034 <item class="Spring" id="4"> 0035 <name>spring1</name> 0036 <color>#ff00ff00</color> 0037 <restLength>3</restLength> 0038 <stiffness>1</stiffness> 0039 <damping>0</damping> 0040 <body1>2</body1> 0041 <body2>3</body2> 0042 <localPosition1>(0,0)</localPosition1> 0043 <localPosition2>(0,0)</localPosition2> 0044 </item> 0045 0046 <item class="LinearMotor" id="5"> 0047 <name>linearMotor1</name> 0048 <color>#ff0000ff</color> 0049 <body>2</body> 0050 <localPosition>(0,0)</localPosition> 0051 <forceValue>(0.5,0)</forceValue> 0052 </item> 0053 0054 <item class="LinearMotor" id="6"> 0055 <name>linearMotor2</name> 0056 <color>#ff0000ff</color> 0057 <body>3</body> 0058 <localPosition>(0,0)</localPosition> 0059 <forceValue>(-0.5,0)</forceValue> 0060 </item> 0061 0062 <item class="Controller" id="7"> 0063 <name>controller1</name> 0064 <color>#ff000000</color> 0065 <position>(0,1.28)</position> 0066 <size>(250,60)</size> 0067 <object>5</object> 0068 <property>forceValue</property> 0069 <index>0</index> 0070 <limits>(-10,10)</limits> 0071 <increaseShortcut></increaseShortcut> 0072 <decreaseShortcut></decreaseShortcut> 0073 <increment>0.1</increment> 0074 </item> 0075 0076 <item class="Controller" id="8"> 0077 <name>controller2</name> 0078 <color>#ff000000</color> 0079 <position>(0,0.46)</position> 0080 <size>(250,60)</size> 0081 <object>6</object> 0082 <property>forceValue</property> 0083 <index>0</index> 0084 <limits>(-10,10)</limits> 0085 <increaseShortcut></increaseShortcut> 0086 <decreaseShortcut></decreaseShortcut> 0087 <increment>0.1</increment> 0088 </item> 0089 0090 <item class="Note" id="9"> 0091 <name>note1</name> 0092 <color>#ff000000</color> 0093 <position>(-1.08,1.98)</position> 0094 <size>(218,100)</size> 0095 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 0096 <html><head><meta name="qrichtext" content="1" /><style type="text/css"> 0097 p, li { white-space: pre-wrap; } 0098 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 0099 <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600;">Tutorial 4</span></p> 0100 <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">Motors and forces</span></p></body></html></text> 0101 0102 </item> 0103 0104 <item class="Note" id="10"> 0105 <name>note2</name> 0106 <color>#ff000000</color> 0107 <position>(-3.6,1.07)</position> 0108 <size>(300,170)</size> 0109 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 0110 <html><head><meta name="qrichtext" content="1" /><style type="text/css"> 0111 p, li { white-space: pre-wrap; } 0112 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 0113 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Linear motor</span></p> 0114 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- A linear motor applies a constant force to a given point on a body.</p> 0115 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- You can change the force by dragging its handler 0116 while the motor is selected.</p> 0117 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- You can change the point of application by dragging the force</p></body></html></text> 0118 0119 </item> 0120 0121 <item class="Note" id="11"> 0122 <name>note4</name> 0123 <color>#ff000000</color> 0124 <position>(-3.6,-0.35)</position> 0125 <size>(300,130)</size> 0126 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 0127 <html><head><meta name="qrichtext" content="1" /><style type="text/css"> 0128 p, li { white-space: pre-wrap; } 0129 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 0130 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Circular motor</span></p> 0131 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- A circular motor applies a constant angular momentum to a body.</p> 0132 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- Try to attach a circular motor to the box and start simulation.</p></body></html></text> 0133 0134 </item> 0135 0136 <item class="Note" id="12"> 0137 <name>note3</name> 0138 <color>#ff000000</color> 0139 <position>(-3.6,-1.99)</position> 0140 <size>(300,198)</size> 0141 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 0142 <html><head><meta name="qrichtext" content="1" /><style type="text/css"> 0143 p, li { white-space: pre-wrap; } 0144 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 0145 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Global forces</span></p> 0146 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"><span style=" font-weight:400;">- Global forces are forces that act on all bodies of a specific kind, for example weight force.</span></p> 0147 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- By default all global forces in Step are turned off. To turn them on, just add an object for appropriate force to the scene.</p> 0148 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- Try to add WeightForce to the scene and start the simulation.</p></body></html></text> 0149 0150 </item> 0151 0152 <item class="Box" id="13"> 0153 <name>box2</name> 0154 <color>#ff000000</color> 0155 <position>(-1.48,-3.815)</position> 0156 <angle>0</angle> 0157 <velocity>(0,0)</velocity> 0158 <angularVelocity>0</angularVelocity> 0159 <mass>1e+100</mass> 0160 <inertia>1e+100</inertia> 0161 <size>(7.8,0.19)</size> 0162 </item> 0163 0164 <item class="Anchor" id="14"> 0165 <name>anchor1</name> 0166 <color>#ffff0000</color> 0167 <body>13</body> 0168 <position>(-1.48,-3.815)</position> 0169 <angle>0</angle> 0170 </item> 0171 0172 <solver class="AdaptiveEulerSolver" id="15"> 0173 <name>solver1</name> 0174 <stepSize>1</stepSize> 0175 <toleranceAbs>0.001</toleranceAbs> 0176 <toleranceRel>0.001</toleranceRel> 0177 </solver> 0178 0179 <collisionSolver class="GJKCollisionSolver" id="16"> 0180 <name>collisionSolver1</name> 0181 <toleranceAbs>0.001</toleranceAbs> 0182 </collisionSolver> 0183 0184 <constraintSolver class="CGConstraintSolver" id="17"> 0185 <name>constraintSolver1</name> 0186 </constraintSolver> 0187 0188 </world>