1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE StepCoreXML> 3<world xmlns="http://edu.kde.org/step/StepCoreXML" version="1.0" id="1"> 4 <name>world1</name> 5 <color>#ffffffff</color> 6 <time>33.9199999999995</time> 7 <timeScale>1</timeScale> 8 <errorsCalculation>false</errorsCalculation> 9 10 <item class="Disk" id="2"> 11 <name>disk1</name> 12 <color>#ff000000</color> 13 <position>(-1.122,-1.3)</position> 14 <angle>0</angle> 15 <velocity>(0.349794,0)</velocity> 16 <angularVelocity>0</angularVelocity> 17 <mass>1</mass> 18 <inertia>0.09365</inertia> 19 <radius>0.432781700167648</radius> 20 </item> 21 22 <item class="Box" id="3"> 23 <name>box1</name> 24 <color>#ff000000</color> 25 <position>(1.272,-1.3)</position> 26 <angle>0</angle> 27 <velocity>(-0.349794,0)</velocity> 28 <angularVelocity>0</angularVelocity> 29 <mass>1</mass> 30 <inertia>0.177241666666667</inertia> 31 <size>(0.5,1.37)</size> 32 </item> 33 34 <item class="Spring" id="4"> 35 <name>spring1</name> 36 <color>#ff00ff00</color> 37 <restLength>3</restLength> 38 <stiffness>1</stiffness> 39 <damping>0</damping> 40 <body1>2</body1> 41 <body2>3</body2> 42 <localPosition1>(0,0)</localPosition1> 43 <localPosition2>(0,0)</localPosition2> 44 </item> 45 46 <item class="LinearMotor" id="5"> 47 <name>linearMotor1</name> 48 <color>#ff0000ff</color> 49 <body>2</body> 50 <localPosition>(0,0)</localPosition> 51 <forceValue>(0.5,0)</forceValue> 52 </item> 53 54 <item class="LinearMotor" id="6"> 55 <name>linearMotor2</name> 56 <color>#ff0000ff</color> 57 <body>3</body> 58 <localPosition>(0,0)</localPosition> 59 <forceValue>(-0.5,0)</forceValue> 60 </item> 61 62 <item class="Controller" id="7"> 63 <name>controller1</name> 64 <color>#ff000000</color> 65 <position>(0,1.28)</position> 66 <size>(250,60)</size> 67 <object>5</object> 68 <property>forceValue</property> 69 <index>0</index> 70 <limits>(-10,10)</limits> 71 <increaseShortcut></increaseShortcut> 72 <decreaseShortcut></decreaseShortcut> 73 <increment>0.1</increment> 74 </item> 75 76 <item class="Controller" id="8"> 77 <name>controller2</name> 78 <color>#ff000000</color> 79 <position>(0,0.46)</position> 80 <size>(250,60)</size> 81 <object>6</object> 82 <property>forceValue</property> 83 <index>0</index> 84 <limits>(-10,10)</limits> 85 <increaseShortcut></increaseShortcut> 86 <decreaseShortcut></decreaseShortcut> 87 <increment>0.1</increment> 88 </item> 89 90 <item class="Note" id="9"> 91 <name>note1</name> 92 <color>#ff000000</color> 93 <position>(-1.08,1.98)</position> 94 <size>(218,100)</size> 95 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 96<html><head><meta name="qrichtext" content="1" /><style type="text/css"> 97p, li { white-space: pre-wrap; } 98</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 99<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> 100<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> 101 102 </item> 103 104 <item class="Note" id="10"> 105 <name>note2</name> 106 <color>#ff000000</color> 107 <position>(-3.6,1.07)</position> 108 <size>(300,170)</size> 109 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 110<html><head><meta name="qrichtext" content="1" /><style type="text/css"> 111p, li { white-space: pre-wrap; } 112</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 113<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> 114<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> 115<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 116while the motor is selected.</p> 117<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> 118 119 </item> 120 121 <item class="Note" id="11"> 122 <name>note4</name> 123 <color>#ff000000</color> 124 <position>(-3.6,-0.35)</position> 125 <size>(300,130)</size> 126 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 127<html><head><meta name="qrichtext" content="1" /><style type="text/css"> 128p, li { white-space: pre-wrap; } 129</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 130<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> 131<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> 132<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> 133 134 </item> 135 136 <item class="Note" id="12"> 137 <name>note3</name> 138 <color>#ff000000</color> 139 <position>(-3.6,-1.99)</position> 140 <size>(300,198)</size> 141 <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 142<html><head><meta name="qrichtext" content="1" /><style type="text/css"> 143p, li { white-space: pre-wrap; } 144</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> 145<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> 146<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> 147<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> 148<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> 149 150 </item> 151 152 <item class="Box" id="13"> 153 <name>box2</name> 154 <color>#ff000000</color> 155 <position>(-1.48,-3.815)</position> 156 <angle>0</angle> 157 <velocity>(0,0)</velocity> 158 <angularVelocity>0</angularVelocity> 159 <mass>1e+100</mass> 160 <inertia>1e+100</inertia> 161 <size>(7.8,0.19)</size> 162 </item> 163 164 <item class="Anchor" id="14"> 165 <name>anchor1</name> 166 <color>#ffff0000</color> 167 <body>13</body> 168 <position>(-1.48,-3.815)</position> 169 <angle>0</angle> 170 </item> 171 172 <solver class="AdaptiveEulerSolver" id="15"> 173 <name>solver1</name> 174 <stepSize>1</stepSize> 175 <toleranceAbs>0.001</toleranceAbs> 176 <toleranceRel>0.001</toleranceRel> 177 </solver> 178 179 <collisionSolver class="GJKCollisionSolver" id="16"> 180 <name>collisionSolver1</name> 181 <toleranceAbs>0.001</toleranceAbs> 182 </collisionSolver> 183 184 <constraintSolver class="CGConstraintSolver" id="17"> 185 <name>constraintSolver1</name> 186 </constraintSolver> 187 188</world> 189