#
#CrazyCars2
#by SL7549
#

gamerule
	engagedistance 200

#objects

#car 1

# body
env_obj 1
	shape box
	pos 1 14 0.7
	color 0.5 0 0 
	rot 0 0 0
	sides 2 4 0.2
	material steel
	mass 1
	flag 0

# wheel1
env_obj 2
	shape sphere
	pos 2.6 12.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel2
env_obj 3
	shape sphere
	pos -0.6 12.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel3
env_obj 4
	shape sphere
	pos 2.6 15.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel4
env_obj 5
	shape sphere
	pos -0.6 15.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

#joints

#joint wheel1 body
env_obj_joint 1 1 2
	pos 2.1 12.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#joint wheel2 body
env_obj_joint 2 1 3
	pos -0.1 12.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#joint wheel3 body
env_obj_joint 3 1 4
	pos 2.1 15.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#joint wheel4 body
env_obj_joint 4 1 5
	pos -0.1 15.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#car 2

# body
env_obj 6
	shape box
	pos 1 -14 0.7
	color 0.5 0 0 
	rot 0 0 0
	sides 2 4 0.2
	material steel
	mass 1
	flag 0

# wheel1
env_obj 7
	shape sphere
	pos 2.6 -12.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel2
env_obj 8
	shape sphere
	pos -0.6 -12.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel3
env_obj 9
	shape sphere
	pos 2.6 -15.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel4
env_obj 10
	shape sphere
	pos -0.6 -15.5 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

#joints

#joint wheel1 body
env_obj_joint 6 6 7
	pos 2.1 -12.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity 100
	visible 1

#joint wheel2 body
env_obj_joint 7 6 8
	pos -0.1 -12.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity 100
	visible 1

#joint wheel3 body
env_obj_joint 8 6 9
	pos 2.1 -15.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity 100
	visible 1

#joint wheel4 body
env_obj_joint 9 6 10
	pos -0.1 -15.5 0.5
	axis 1 0 0
	range 5 -5
	strength 10
	velocity 100
	visible 1

#car 3

# body
env_obj 11
	shape box
	pos -14 1 0.7
	color 0.5 0 0 
	rot 0 0 0
	sides 4 2 0.2
	material steel
	mass 1
	flag 0

# wheel1
env_obj 12
	shape sphere
	pos -12.5 2.6 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel2
env_obj 13
	shape sphere
	pos -12.5 -0.6 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel3
env_obj 14
	shape sphere
	pos -15.5 2.6 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

# wheel4
env_obj 15
	shape sphere
	pos -15.5 -0.6 0.5
	color 0.01 0 0 
	sides 0.5
	material steel
	mass 0.0001
	flag 0

#joints

#joint wheel1 body
env_obj_joint 11 11 12
	pos -12.5 2.1 0.5
	axis 0 1 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#joint wheel2 body
env_obj_joint 12 11 13
	pos -12.5 -0.1 0.5
	axis 0 1 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#joint wheel3 body
env_obj_joint 13 11 14
	pos -15.5 2.1 0.5
	axis 0 1 0
	range 5 -5
	strength 10
	velocity -100
	visible 1

#joint wheel4 body
env_obj_joint 14 11 15
	pos -15.5 -0.1 0.5
	axis 0 1 0
	range 5 -5
	strength 10
	velocity -100
	visible 1