Skip to content

Instantly share code, notes, and snippets.

@supereggbert
Created July 25, 2011 15:21
Show Gist options
  • Save supereggbert/1104371 to your computer and use it in GitHub Desktop.
Save supereggbert/1104371 to your computer and use it in GitHub Desktop.
XML definition of a car in GLGE
<physics_car id="car" loc_y="5.5" mass="15" width="4" depth="0.5" height="1">
<collada document="car.dae" id="carObject" scale="0.3" scale_y="-0.3" />
<physics_wheel id="wheel1" loc_x="1.4" loc_z="0.9" loc_y="-0.2" radius="0.5" travel="0.6" spring="150" side_friction="3" front_friction="10">
<collada document="wheel.dae" id="wheel1obj" scale="0.3" scale_y="-0.3" />
</physics_wheel>
<physics_wheel id="wheel2" loc_x="1.4" loc_z="-0.9" loc_y="-0.2" radius="0.5" travel="0.6" spring="150" side_friction="3" front_friction="10">
<collada document="wheel.dae" id="wheel2obj" scale="0.3" />
</physics_wheel>
<physics_wheel id="wheel3" powered="TRUE" loc_x="-1.7" loc_z="0.9" loc_y="-0.2" radius="0.5" travel="0.6" spring="150" side_friction="3" front_friction="10">
<collada document="wheel.dae" id="wheel3obj" scale="0.3" scale_y="-0.3" />
</physics_wheel>
<physics_wheel id="wheel4" powered="TRUE" loc_x="-1.7" loc_z="-0.9" loc_y="-0.2" radius="0.5" travel="0.6" spring="150" side_friction="3" front_friction="10">
<collada document="wheel.dae" id="wheel4obj" scale="0.3" />
</physics_wheel>
</physics_car>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment