Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogreode/demos/Media/simplescenes.ogreode @ 21

Last change on this file since 21 was 21, checked in by nicolasc, 17 years ago

added ogreode and Colladaplugin

File size: 6.9 KB
RevLine 
[21]1<ogreode>
2    <ragdoll name="zombie" meshName="zombie.mesh">
3
4        <!-- Set up the default settings -->
5        <defaults>
6            <settings geometry="capsule"  joint="ball" collapse="none" mass="50" radius="0.25">
7                <damping angular="0.1" linear="0.1" />
8                <axis number="1" x="1" y="0" z="0" />
9                <axis number="2" x="0" y="1" z="0" />
10            </settings>
11        </defaults>
12
13            <!-- Set up some specific settings, if no value's provided then the value that was last set for that parameter -->
14        <bone name="Torso">
15            <settings geometry="box" joint="fixed" />
16        </bone>
17
18        <bone name="Shoulders" />
19
20        <bone name="Neck">
21            <settings joint="universal">
22                <axis number="1" x="0" y="1" z="0">
23                    <stop low="-1.57" high="1.57" />
24                </axis>
25                <axis number="2" x="1" y="0" z="0">
26                    <stop low="-1.0" high="0.8" />
27                </axis>
28            </settings>
29        </bone>
30
31        <bone name="LeftAnkle">
32            <settings joint="hinge">
33                <axis number="1" x="1" y="0" z="0">
34                    <stop low="-1.57" high="0.8" />
35                </axis>
36            </settings>
37        </bone>
38
39        <bone name="RightAnkle" />
40
41        <bone name="LeftElbow">
42            <settings geometry="capsule">
43                <axis number="1">
44                    <stop low="0.0" high="2.0" />
45                </axis>
46            </settings>
47        </bone>
48
49        <bone name="RightElbow" />
50
51        <bone name="LeftKnee">
52            <settings>
53                <axis number="1">
54                    <stop low="-1.57" high="0.0" />
55                </axis>
56            </settings>
57        </bone>
58
59        <bone name="RightKnee" />
60
61        <bone name="RightHip">
62            <settings joint="universal">
63                <axis number="1" x="1" y="0" z="0">
64                    <stop low="-0.8" high="0.8" />
65                </axis>
66                <axis number="2" x="0" y="0" z="1">
67                    <stop low="0.0" high="0.8" />
68                </axis>
69            </settings>
70        </bone>
71
72        <bone name="LeftHip">
73            <settings>
74                <axis number="2" x="0" y="0" z="-1" />
75            </settings>
76        </bone>
77
78        <bone name="RightShoulder">
79            <settings>
80                <axis number="1">
81                    <stop low="-1.57" high="3.1416" />
82                </axis>
83                <axis number="2" z="1">
84                    <stop low="0" high="1.57" />
85                </axis>
86            </settings>
87        </bone>
88
89        <bone name="LeftShoulder">
90            <settings>
91                <axis number="2" z="-1" />
92            </settings>
93        </bone>
94
95        <!-- Set the root bone so it's collapsed up to where it joins the next
96                     body, to stop a big thing dangling down between his legs (Ooer!)
97                     Collapse is only (currently) supported on capsule bones -->
98        <bone name="Root">
99            <settings collapse="up" />
100        </bone>
101
102    </ragdoll>
103
104        <!-- Create the vehicle using the supplied name and body mesh, make it 1.5 units heavy
105                 e.g. tonnes and offset the center of gravity by half (a metre) to make it more stable
106                 This puts the CoG somewhere around the wheel hubs, which is probably reasonably
107                 realistic for a sports-car -->
108    <vehicle name="Subaru">
109
110        <body mesh="scooby_body.mesh">
111                  <mass value="1.5" x="0" y="-0.5" z="0" />
112        </body>
113
114                <!-- Create all the wheels, using the supplied mesh and with the specified offset
115                     relative to the car. The mass is 0.02 units, in our case that's around 20Kg -->
116        <wheel mesh="scooby_wheell.mesh" x="0.8045" y="-0.46698" z="1.4" mass="0.02">
117            <steer factor="1" force="8.0" speed="4.0" limit="0.75" />
118            <brake factor="0.75" />
119            <contact bouncyness="0.9" friction="1.5" fds="0.002" />
120        </wheel>
121                <wheel mesh="scooby_wheelr.mesh" x="-0.8045" y="-0.46698" z="1.4" mass="0.02">
122            <steer factor="1" force="8.0" speed="4.0" limit="0.75" />
123            <brake factor="0.75" />
124            <contact bouncyness="0.9" friction="1.5" fds="0.002" />
125        </wheel>
126                <wheel mesh="scooby_wheell.mesh" x="0.8045" y="-0.46698" z="-1.4" mass="0.02">
127            <power factor="1" />
128            <brake factort="0.25" />
129            <contact bouncyness="0.9" friction="1.5" fds="0.002" />
130        </wheel>
131                <wheel mesh="scooby_wheelr.mesh" x="-0.8045" y="-0.46698" z="-1.4" mass="0.02">
132            <power factor="1" />
133            <brake factor="0.25" />
134            <contact bouncyness="0.9" friction="1.5" fds="0.002" />
135            <suspension spring="90" damping="0.95" step="0.01" />
136        </wheel>
137
138                <!-- Set up the suspension spring and damping constants, passing the rate we're going to
139                     be stepping the world so it can work out the forces needed each step
140                     We could do this per-wheel, like the other factors, but it's easier to do it this way.
141                     N.B. You must create the wheels before you can do this! -->
142                <suspension spring="90" damping="0.95" step="0.01" />
143
144                <!-- Set the engine (and other drivetrain) parameters, lots of work still to do here! -->
145                <engine redline="70.0" brake="10.0">
146            <torque min="0.25" max="5.0" />
147        </engine>
148    </vehicle>
149
150        <!-- Create the vehicle using the supplied name and body mesh, make it 1.5 units heavy
151                 e.g. tonnes and offset the center of gravity by half (a metre) to make it more stable
152                 This puts the CoG somewhere around the wheel hubs, which is probably reasonably
153                 realistic for a sports-car -->
154    <vehicle name="Jeep">
155
156        <body mesh="jeep_body.mesh">
157                  <mass value="3" x="0" y="-1" z="0" />
158        </body>
159
160        <wheel mesh="jeep_wheell.mesh" x="1" y="-1.1" z="1.8" mass="0.06">
161            <steer factor="1" force="8.0" speed="4.0" limit="0.75" />
162            <brake factor="0.75" />
163            <power factor="1.0" />
164            <contact bouncyness="0.9" friction="1.5" fds="0.004" />
165        </wheel>
166        <wheel mesh="jeep_wheelr.mesh" x="-1" y="-1.1" z="1.8" mass="0.06">
167            <steer factor="1" force="8.0" speed="4.0" limit="0.75" />
168            <brake factor="0.75" />
169            <power factor="1.0" />
170            <contact bouncyness="0.9" friction="1.5" fds="0.004" />
171        </wheel>
172        <wheel mesh="jeep_wheell.mesh" x="1" y="-1.1" z="-1.6" mass="0.06">
173            <brake factor="0.25" />
174            <power factor="1.0" />
175            <contact bouncyness="0.9" friction="1.5" fds="0.004" />
176        </wheel>
177        <wheel mesh="jeep_wheelr.mesh" x="-1" y="-1.1" z="-1.6" mass="0.06">
178            <brake factor="0.25" />
179            <power factor="1.0" />
180            <contact bouncyness="0.9" friction="1.5" fds="0.004" />
181        </wheel>
182
183                <suspension spring="100" damping="3.6" step="0.01" />
184
185                <engine redline="30.0" brake="15.0">
186            <torque min="0.5" max="10.0" />
187        </engine>
188    </vehicle>
189</ogreode>
190
Note: See TracBrowser for help on using the repository browser.