# Tilting.
# Made by FNugget
gamerule
dismemberment 1
fracture 1
dt 1000
ft 300
engageplayerpos -1,15.5,1.5,1,-15.5,1.5
engageplayerrot 0,0,0,0,0,180
mf 600
tf 50,50,40,20,20,10,10,15,15,30,60,120,160
dq 1
dojotype 0
dojosize 1

#P1
env_obj 1
    shape box
    pos 0 15.5625 2.5625
    color 0.1 0.1 0.1 1
    rot 0 0 0
    sides 0.1875 1.5625 0.5
    material steel
    mass 0.01
    thrust 1 0 0 0.1
    flag 0
#Back 1
env_obj 2
    shape box
    pos 0 15.9375 3.1375
    color 0.1 0.1 0.1 1
    rot 7 0 0
    sides 0.5 0.08 0.875
    material steel
    mass 0.05
    flag 0
#FWheel 1
env_obj 3
    shape box
    pos 0 13.625 1
    color 0.1 0.1 0.1 1
    rot 0 0 0
    sides 0.46 1.7 1.7
    material steel
    mass .05
    thrust 1 0 0 -25
    flag 0
#BWheel 1
env_obj 4
    shape box
    pos 0 17.3125 1
    color 0.1 0.1 0.1 1
    rot 0 0 0
    sides 0.46 1.8 1.8
    material steel
    mass 0.05
    thrust 1 0 0 -10
    flag 0
#P2
env_obj 5
    shape box
    pos 2 -15.7625 2.5625
    color 1 1 1 1
    rot 0 0 0
    sides 0.1875 1.5625 0.5
    material steel
    mass 0.01
    thrust 1 0 0 0.1
    flag 0
#Back 2
env_obj 6
    shape box
    pos 2 -16.1375 3.1375
    color 1 1 1 1
    rot -7 0 0
    sides 0.5 0.08 0.875
    material steel
    mass 0.05
    flag 0
#FWheel 2
env_obj 7
    shape box
    pos 2 -13.825 1
    color 1 1 1 1
    rot 0 0 0
    sides 0.46 1.7 1.7
    material steel
    mass .05
    thrust 1 0 0 -25
    flag 0
#BWheel 2
env_obj 8
    shape box
    pos 2 -17.5125 1
    color 1 1 1 1
    rot 0 0 0
    sides 0.46 1.8 1.8
    material steel
    mass 0.05
    thrust 1 0 0 -10
    flag 0
#Lance 1
env_obj 9
    shape cylinder
    pos -1.5 14.5625 3.75
    color 0.8 0.8 0.8 1
    rot 90 0 0
    sides 0.05 6 0.05
    material steel
    mass 0.001
    flag 0
#Tip 1
env_obj 10
    shape box
    pos -1.5 11.5425 3.75
    color 1 1 1 1
    rot 45 0 45
    sides 0.04 0.04 0.04
    material steel
    mass 0.001
    flag 4
#Shield 1
env_obj 11
    shape box
    pos 1.5 15.5 3.45
    color 0 0 0 1
    rot 0 0 0
    sides 0.8 0.1 1
    material steel
    mass 0.003
    flag 0
#Lance 2
env_obj 12
    shape cylinder
    pos 3.5 -14.7625 3.75
    color 0.8 0.8 0.8 1
    rot 90 0 0
    sides 0.05 6 0.05
    material steel
    mass 0.001
    flag 0
#Tip 2
env_obj 13
    shape box
    pos 3.5 -11.7425 3.75
    color 1 1 1 1
    rot 45 0 45
    sides 0.04 0.04 0.04
    material steel
    mass 0.001
    flag 4
#Shield 2
env_obj 14
    shape box
    pos 0.5 -15.7 3.45
    color 1 1 1 1
    rot 0 0 0
    sides 0.8 0.1 1
    material steel
    mass 0.003
    flag 0

#1
env_obj_joint 1 1 2
pos 0 15.5625 1.0625
strength 100

env_obj_joint 2 1 3
pos 0 13.8625 1
axis 1 0 0
range 5 -5
velocity -30
strength 50

env_obj_joint 3 1 4
pos 0 17.3125 1
axis 1 0 0
range 5 -5
velocity -20
strength 50

#2
env_obj_joint 4 5 6
pos 2 -15.7625 1.0625
strength 100

env_obj_joint 5 5 7
pos 2 -14.0625 1
axis 1 0 0
range 5 -5
velocity 30
strength 50

env_obj_joint 6 5 8
pos 2 -17.5125 1
axis 1 0 0
range 5 -5
velocity 20
strength 50

#lance
env_obj_joint 7 9 10
pos -1.5 11.5425 3.75
strength 1000

env_obj_joint 8 12 13
pos 3.5 -11.7425 3.75
strength 1000

body r_foot
density 1

body l_foot
density 1