Community Forum

Traffic

Forum Overview >> Editor

CategoryEditor
Created21.03.2017 17:16


Ekkehard Kohfeld (Unknown) 21.03.2017 17:17
Is it possible for traffic vehicles to have more than 4 wheels in the game? 3 axles

Emil Drefers (Unknown) 23.03.2017 07:08
Hi,

just give it a try :)
I think it should work.

Cheers,
Emil

Ekkehard Kohfeld (Unknown) 23.03.2017 08:39
Hello Emil (Googeltranslator.)
I have vehicles with 3 + 4 axles but only 4 wheels

map01_trafficSystem.xml

<wheels>
<wheel yRotNode="0" xRotNode="0" radius="0.365" distToRotCenter="2.949" />
<wheel yRotNode="1" xRotNode="1" radius="0.365" distToRotCenter="2.949" />
<wheel yRotNode="2" xRotNode="2" radius="0.365" distToRotCenter="0" />
<wheel yRotNode="3" xRotNode="3" radius="0.365" distToRotCenter="0" />
<wheel yRotNode="4" xRotNode="4" radius="0.365" distToRotCenter="0" />
<wheel yRotNode="5" xRotNode="5" radius="0.365" distToRotCenter="0" />
</wheels>

http://up.picr.de/28676928qo.jpg

http://up.picr.de/28676929yp.jpg

Emil Drefers (Unknown) 23.03.2017 12:14
Hi,

okay.
Your xml file looks good.
I'm gonna forward that problem, but can't guarantee anything at the moment.

Cheers,
Emil

Ekkehard Kohfeld (Unknown) 23.03.2017 13:57
Hi Emil
OK. Thank you

Ekkehard Kohfeld (Unknown) 27.05.2017 08:26
Warning Google Translator.Hallo, there is now no knowledge whether that is?

Emil Drefers (Unknown) 29.05.2017 07:22
Hi,

hmmm, I finally gave it a try and it did work.
I just duplicated two wheels, adjusted the xml file and it works like a charme - wheels do not only rotate around their x axis, but also around their y-axis (steering).

Can you show us your complete xml file? (upload it to pastebin and just put the link to that upload into this thread)

Cheers,
Emil

Ekkehard Kohfeld (Unknown) 29.05.2017 20:36
O.k.

https://www.file-upload.net/download-12524813/map01_trafficSystem.zip.html


Emil Drefers (Unknown) 30.05.2017 06:58
Hi,

please upload a normal .zip file - no installer required.

Cheers,
Emil

Ekkehard Kohfeld (Unknown) 30.05.2017 16:29
So ?
<vehicle topSpeed="0.0100" accel="0.0000035">
<assets filename="../vehicles/cars/Mercedes_Actros_IV/Mercedes_Actros_IV.i3d" filenameParked="../vehicles/cars/Mustang/Mustang.i3d" triggerIndex="9" >
<wheels>
<wheel yRotNode="0" xRotNode="0" radius="0.365" distToRotCenter="2.949" />
<wheel yRotNode="1" xRotNode="1" radius="0.365" distToRotCenter="2.949" />
<wheel yRotNode="2" xRotNode="2" radius="0.365" distToRotCenter="0" />
<wheel yRotNode="3" xRotNode="3" radius="0.365" distToRotCenter="0" />
<wheel yRotNode="4" xRotNode="2" radius="0.365" distToRotCenter="0" />
<wheel yRotNode="5" xRotNode="3" radius="0.365" distToRotCenter="0" />
</wheels>
<lights>
<light index="6" lowProfile="6|8" highProfile="6|9" />
<brake decoration="8" />
<turnLeft decoration="7|0" />
<turnRight decoration="7|1" />
</lights>
<colors index="10" indexParked="10" minDirt="0" maxDirt="0.3">
<color rgb="0.97 0.97 0.97" /> <!-- white -->
<color rgb="0.815 0.863 0.863" /> <!-- silver -->
<color rgb="0.070 0.086 0.090" /> <!-- silver -->
<color rgb="0.102 0.159 0.168" /> <!-- silver -->
<color rgb="0.445 0.502 0.450" /> <!-- silver -->
<color rgb="0.270 0.337 0.361" /> <!-- silver -->
<color rgb="0.385 0.01 0.01" /> <!-- red -->
<color rgb="0.010 0.082 0.250" /> <!-- blue -->
<color rgb="0.011 0.018 0.014" /> <!-- black -->
</colors>
<sounds>
<motor filename="../vehicles/cars/carVan_run.wav" volume="1" range="25" innerRange="1" pitchOffset="1" pitchScale="0.02" pitchMin="0.8" pitchMax="1.5" />
<honk filename="../sounds/hornCar.wav" volume="1" range="25" innerRange="1" />
</sounds>
</assets>
</vehicle>


Emil Drefers (Unknown) 31.05.2017 06:43
Hi,

yes, but one vehicle (with more than 4 wheels) would have been enough. I changed that.

So in the example which is posted above, there are two problems

<wheel yRotNode="4" xRotNode="2" radius="0.365" distToRotCenter="0" />

yRotNode defines the object which will be rotated around its local yAxis. (steering)
xRotNode defines the object which will be rotated around its local xAxis. (driving)

Soooo, can you spot the problem?

Cheers,
Emil


Note: Log in to post. Create a new account here.