87 lines
3.5 KiB
Plaintext
87 lines
3.5 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://models/tbody.obj" type="ArrayMesh" id=1]
|
|
[ext_resource path="res://models/wheel.obj" type="ArrayMesh" id=2]
|
|
[ext_resource path="res://models/tturret.obj" type="ArrayMesh" id=3]
|
|
[ext_resource path="res://models/tcannon.obj" type="ArrayMesh" id=4]
|
|
[ext_resource path="res://tank-base.gd" type="Script" id=5]
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
extents = Vector3( 2.65981, 0.569, 1.02308 )
|
|
|
|
[sub_resource type="CylinderShape" id=2]
|
|
height = 1.01006
|
|
radius = 0.790229
|
|
|
|
[node name="Spatial" type="Spatial"]
|
|
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 1.1205, 0 )
|
|
|
|
[node name="TankBody" type="VehicleBody" parent="."]
|
|
engine_force = 40.0
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="TankBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.134326, 0, -0.00275861 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="TankBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00692177, 0, -0.00248563 )
|
|
mesh = ExtResource( 1 )
|
|
|
|
[node name="Turret" type="MeshInstance" parent="TankBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.523891, 0 )
|
|
mesh = ExtResource( 3 )
|
|
|
|
[node name="Cannon" type="MeshInstance" parent="TankBody/Turret"]
|
|
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.161056, 0 )
|
|
mesh = ExtResource( 4 )
|
|
|
|
[node name="Camera" type="InterpolatedCamera" parent="TankBody/Turret/Cannon"]
|
|
transform = Transform( -4.37114e-08, -0.0903545, 0.99591, 0, 0.99591, 0.0903545, -1, 3.94952e-09, -4.35326e-08, 0, 0.616, 0 )
|
|
current = true
|
|
fov = 60.0
|
|
near = 0.1
|
|
|
|
[node name="Aimpoint" type="Spatial" parent="TankBody/Turret/Cannon"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -20, 0, 0 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="TankBody/Turret"]
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Wheel FrontLeft" type="VehicleWheel" parent="TankBody"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 1.04618, -0.957658, -0.968059 )
|
|
use_as_traction = true
|
|
use_as_steering = true
|
|
suspension_stiffness = 7.805
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="TankBody/Wheel FrontLeft"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
|
|
mesh = ExtResource( 2 )
|
|
|
|
[node name="Wheel FrontRight" type="VehicleWheel" parent="TankBody"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 1.04618, -0.957658, 0.954998 )
|
|
use_as_traction = true
|
|
use_as_steering = true
|
|
suspension_stiffness = 7.805
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="TankBody/Wheel FrontRight"]
|
|
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 0 )
|
|
mesh = ExtResource( 2 )
|
|
|
|
[node name="Wheel BackLeft" type="VehicleWheel" parent="TankBody"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -1.36479, -0.957658, -0.968059 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="TankBody/Wheel BackLeft"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
|
|
mesh = ExtResource( 2 )
|
|
|
|
[node name="Wheel BackRight" type="VehicleWheel" parent="TankBody"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -1.3645, -0.957658, 0.954998 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="TankBody/Wheel BackRight"]
|
|
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 0 )
|
|
mesh = ExtResource( 2 )
|
|
|
|
[node name="Camera" type="Camera" parent="TankBody"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.74436e-07, 0, 8.56609 )
|