Proper leg setup.

This commit is contained in:
Relintai 2022-09-06 18:43:08 +02:00
parent 426751378f
commit 0d50f63a9b
3 changed files with 23 additions and 19 deletions

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://models/entities/spider/spider_base_chitin_albedo.png" type="Texture" id=1]
[ext_resource path="res://models/entities/spider/lower_leg.tres" type="MeshDataResource" id=2]
[ext_resource path="res://models/entities/spider/upper_leg.tres" type="MeshDataResource" id=3]
[ext_resource path="res://models/entities/spider/leg_thorax.tres" type="MeshDataResource" id=4]
[sub_resource type="SpatialMaterial" id=1]
flags_vertex_lighting = true
@ -10,17 +11,20 @@ albedo_texture = ExtResource( 1 )
[node name="Legs" type="Spatial"]
[node name="UpperLeg2" type="MeshDataInstance" parent="."]
transform = Transform( -0.347689, 0.93761, 0, -0.93761, -0.347689, 0, 0, 0, 1, -0.003, -0.022, 0 )
[node name="LegThorax" type="MeshDataInstance" parent="."]
transform = Transform( 0.866104, 0.499864, 0, -0.499864, 0.866104, 0, 0, 0, 1, 0, 0, 0 )
mesh_data = ExtResource( 4 )
texture = ExtResource( 1 )
material = SubResource( 1 )
[node name="UpperLeg2" type="MeshDataInstance" parent="LegThorax"]
transform = Transform( 0.0332423, 0.999448, 0, -0.999448, 0.0332423, 0, 0, 0, 1, -0.0190351, 0.483731, 0 )
mesh_data = ExtResource( 3 )
texture = ExtResource( 1 )
material = SubResource( 1 )
[node name="LowerLegs" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.503581, -0.206726, 0 )
[node name="LowerLeg7" type="MeshDataInstance" parent="LowerLegs"]
transform = Transform( -0.832825, 0.553537, 0, -0.553537, -0.832825, 0, 0, 0, 1, 0.01, 0, 0 )
[node name="LowerLeg7" type="MeshDataInstance" parent="LegThorax/UpperLeg2"]
transform = Transform( 0.760916, 0.64885, 0, -0.64885, 0.760916, 0, 0, 0, 1, -0.0149617, 0.559082, 0 )
mesh_data = ExtResource( 2 )
texture = ExtResource( 1 )
material = SubResource( 1 )

View File

@ -93,7 +93,7 @@ __meta__ = {
}
[node name="Torso" type="Spatial" parent="FullPreview"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.595369, 0 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.318816, 0 )
[node name="Abdomen" type="MeshDataInstance" parent="FullPreview/Torso"]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -0.231096 )
@ -114,28 +114,28 @@ texture = ExtResource( 2 )
material = SubResource( 1 )
[node name="LegsLeftBack" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( 0.853778, 0, 0.520637, 0, 1, 0, -0.520637, 0, 0.853778, 0.201448, 0.64, -0.166827 )
transform = Transform( 0.853778, 0, 0.520637, 0, 1, 0, -0.520637, 0, 0.853778, 0.201448, 0.303214, -0.166827 )
[node name="LegsLeftMid" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( 0.977849, 0, 0.209311, 0, 1, 0, -0.209311, 0, 0.977849, 0.201728, 0.640268, -0.0524873 )
transform = Transform( 0.977849, 0, 0.209311, 0, 1, 0, -0.209311, 0, 0.977849, 0.201728, 0.303482, -0.0524873 )
[node name="LegsLeftMid2" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( 0.970321, 0, -0.24182, 0, 1, 0, 0.24182, 0, 0.970321, 0.201728, 0.640268, 0.064917 )
transform = Transform( 0.970321, 0, -0.24182, 0, 1, 0, 0.24182, 0, 0.970321, 0.201728, 0.303482, 0.064917 )
[node name="LegsLeftFront" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( 0.755854, 0, -0.654741, 0, 1, 0, 0.654741, 0, 0.755854, 0.189553, 0.64, 0.168087 )
transform = Transform( 0.755854, 0, -0.654741, 0, 1, 0, 0.654741, 0, 0.755854, 0.189553, 0.303214, 0.168087 )
[node name="LegsRightBack" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( -0.844019, 0, 0.536313, 0, 1, 0, -0.536313, 0, -0.844019, -0.188771, 0.621, -0.157888 )
transform = Transform( -0.844019, 0, 0.536313, 0, 1, 0, -0.536313, 0, -0.844019, -0.188771, 0.284214, -0.157888 )
[node name="LegsRightMid" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( -0.978216, 0, 0.207587, 0, 1, 0, -0.207587, 0, -0.978216, -0.204, 0.621, -0.032139 )
transform = Transform( -0.978216, 0, 0.207587, 0, 1, 0, -0.207587, 0, -0.978216, -0.204, 0.284214, -0.032139 )
[node name="LegsRightMid2" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( -0.986951, 0, -0.161018, 0, 1, 0, 0.161018, 0, -0.986951, -0.204, 0.621, 0.0811554 )
transform = Transform( -0.986951, 0, -0.161018, 0, 1, 0, 0.161018, 0, -0.986951, -0.204, 0.284214, 0.0811554 )
[node name="LegsRightFront" parent="FullPreview" instance=ExtResource( 12 )]
transform = Transform( -0.735754, 0, -0.677249, 0, 1, 0, 0.677249, 0, -0.735754, -0.204, 0.621, 0.138077 )
transform = Transform( -0.735754, 0, -0.677249, 0, 1, 0, 0.677249, 0, -0.735754, -0.204, 0.284214, 0.138077 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.45079, 0.5, -5.56819 )

View File

@ -1,6 +1,6 @@
[gd_resource type="MeshDataResource" format=2]
[resource]
array = [ PoolVector3Array( -0.0477142, -0.00357122, 0.0517499, -0.0477142, 0.581429, 0.0517499, 0.0557858, 0.581429, 0.0517499, 0.0557858, -0.00357122, 0.0517499, -0.0477142, -0.00357122, -0.0517499, -0.0477142, 0.581429, -0.0517499, 0.0557858, 0.581429, -0.0517499, 0.0557858, -0.00357122, -0.0517499, -0.0477142, 0.581429, 0.0517499, 0.0557858, 0.581429, 0.0517499, 0.0557858, 0.581429, 0.0517499, -0.0477142, 0.581429, -0.0517499, 0.0557858, 0.581429, -0.0517499, 0.0557858, 0.581429, -0.0517499 ), PoolVector3Array( 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1 ), null, null, PoolVector2Array( 0.544258, 0.5, 0.986842, 0.5, 0.986842, 0.58114, 0.544258, 0.58114, 0.455742, 0.5, 0.0131579, 0.5, 0.0131579, 0.58114, 0.455742, 0.58114, 0.544259, 0.0942983, 0.544258, 0.986842, 0.544258, 0.013158, 0.455742, 0.0942983, 0.455742, 0.986842, 0.455742, 0.0131579 ), null, null, null, PoolIntArray( 0, 1, 2, 2, 3, 0, 4, 6, 5, 4, 7, 6, 3, 9, 12, 12, 7, 3, 0, 11, 8, 0, 4, 11, 8, 11, 13, 13, 10, 8, 0, 7, 4, 0, 3, 7 ) ]
aabb = AABB( -0.0477142, -0.00357122, 0, 0.1035, 0.585, 0 )
array = [ PoolVector3Array( -0.0487997, 0.0194644, 0.04675, -0.0487997, 0.252214, 0.04675, 0.0566003, 0.252214, 0.04675, 0.0566003, 0.0194644, 0.04675, -0.0487997, 0.0194644, -0.04675, -0.0487997, 0.252214, -0.04675, 0.0566003, 0.252214, -0.04675, 0.0566003, 0.0194644, -0.04675, -0.0487997, 0.252214, 0.04675, 0.0566003, 0.252214, 0.04675, 0.0566003, 0.252214, 0.04675, -0.0487997, 0.252214, -0.04675, 0.0566003, 0.252214, -0.04675, 0.0566003, 0.252214, -0.04675 ), PoolVector3Array( 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1 ), null, null, PoolVector2Array( 0.5, 0.422342, 0.5, 0.0357144, 0.644716, 0.0357143, 0.644716, 0.422342, 0.5, 0.577658, 0.5, 0.964286, 0.644716, 0.964286, 0.644716, 0.577658, 0.18043, 0.422342, 0.964286, 0.422342, 0.0357143, 0.422342, 0.18043, 0.577658, 0.964286, 0.577658, 0.0357143, 0.577658 ), null, null, null, PoolIntArray( 0, 1, 2, 2, 3, 0, 4, 6, 5, 4, 7, 6, 3, 9, 12, 12, 7, 3, 0, 11, 8, 0, 4, 11, 8, 11, 13, 13, 10, 8, 0, 7, 4, 0, 3, 7 ) ]
aabb = AABB( -0.0487997, 0.0194644, 0, 0.1054, 0.23275, 0 )
seams = PoolIntArray( 2, 6, 2, 3, 6, 7, 4, 5, 0, 1, 5, 6, 1, 2 )