WIP: Some updates
This commit is contained in:
parent
89992b1ef4
commit
5ab840cdd8
BIN
godot/assets/audio/weapon/generic_gun_sound.mp3
(Stored with Git LFS)
Normal file
BIN
godot/assets/audio/weapon/generic_gun_sound.mp3
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
godot/assets/audio/weapon/generic_gun_sound.mp3.import
(Stored with Git LFS)
Normal file
BIN
godot/assets/audio/weapon/generic_gun_sound.mp3.import
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -2335,43 +2335,43 @@ bones/0/name = "mixamorig_Hips"
|
||||
bones/0/parent = -1
|
||||
bones/0/rest = Transform3D(1, -8.78096e-05, -2.78699e-06, 2.78699e-06, 0, 1, -8.78096e-05, -1, 0, -6.75701e-06, 4.84474e-05, -99.7919)
|
||||
bones/0/enabled = true
|
||||
bones/0/position = Vector3(-3.30172e-05, 5.16213e-05, -99.7919)
|
||||
bones/0/rotation = Quaternion(-0.707107, 2.97907e-05, 3.227e-05, 0.707107)
|
||||
bones/0/position = Vector3(0.4441, -0.616798, -95.9225)
|
||||
bones/0/rotation = Quaternion(-0.738542, -0.259949, 0.221233, 0.581411)
|
||||
bones/0/scale = Vector3(1, 1, 1)
|
||||
bones/1/name = "mixamorig_Spine"
|
||||
bones/1/parent = 0
|
||||
bones/1/rest = Transform3D(1, -1.22161e-05, -7.43263e-07, 1.22161e-05, 0.992624, 0.121236, -7.43257e-07, -0.121236, 0.992624, 0.000859786, 9.92346, -1.22733)
|
||||
bones/1/enabled = true
|
||||
bones/1/position = Vector3(0.000859786, 9.92346, -1.22733)
|
||||
bones/1/rotation = Quaternion(-0.0607302, 2.29837e-08, 5.87001e-06, 0.998154)
|
||||
bones/1/rotation = Quaternion(0.00899619, -0.00031722, -0.0013267, 0.999959)
|
||||
bones/1/scale = Vector3(1, 1, 1)
|
||||
bones/2/name = "mixamorig_Spine1"
|
||||
bones/2/parent = 1
|
||||
bones/2/rest = Transform3D(1, 1.86323e-05, -7.30208e-09, -1.86323e-05, 1, -0.000392269, -6.79989e-12, 0.000392269, 1, -1.13096e-09, 11.732, 1.20875e-06)
|
||||
bones/2/enabled = true
|
||||
bones/2/position = Vector3(-1.13096e-09, 11.732, 1.20875e-06)
|
||||
bones/2/rotation = Quaternion(0.000196138, 3.09608e-12, -9.31616e-06, 1)
|
||||
bones/2/rotation = Quaternion(0.142943, 0.000658661, -0.00658215, 0.989709)
|
||||
bones/2/scale = Vector3(1, 1, 1)
|
||||
bones/3/name = "mixamorig_Spine2"
|
||||
bones/3/parent = 2
|
||||
bones/3/rest = Transform3D(1, -6.30587e-06, 4.7635e-06, 6.81277e-06, 0.993339, -0.115231, -4.00514e-06, 0.115231, 0.993339, -4.47471e-10, 13.4588, 9.85582e-07)
|
||||
bones/3/enabled = true
|
||||
bones/3/position = Vector3(-4.47471e-10, 13.4588, 9.85582e-07)
|
||||
bones/3/rotation = Quaternion(0.0577117, 2.19582e-06, 3.28513e-06, 0.998333)
|
||||
bones/3/rotation = Quaternion(0.199635, -0.000341301, -0.00650999, 0.979849)
|
||||
bones/3/scale = Vector3(1, 1, 1)
|
||||
bones/4/name = "mixamorig_Neck"
|
||||
bones/4/parent = 3
|
||||
bones/4/rest = Transform3D(1, 6.23025e-11, 3.44099e-12, -6.2282e-11, 0.999984, -0.0056553, -3.79327e-12, 0.0056553, 0.999984, 2.54808e-05, 15.0277, 0.877905)
|
||||
bones/4/enabled = true
|
||||
bones/4/position = Vector3(2.54808e-05, 15.0277, 0.877905)
|
||||
bones/4/rotation = Quaternion(0.00282766, 1.77473e-12, -2.93372e-11, 0.999996)
|
||||
bones/4/rotation = Quaternion(0.00653609, 0.0651899, 0.00768895, 0.997822)
|
||||
bones/4/scale = Vector3(1, 1, 1)
|
||||
bones/5/name = "mixamorig_Head"
|
||||
bones/5/parent = 4
|
||||
bones/5/rest = Transform3D(1, -2.18268e-11, 3.38872e-13, 2.18268e-11, 1, 1.21453e-08, -3.38872e-13, -1.21453e-08, 1, 2.55988e-06, 10.3218, 3.14243)
|
||||
bones/5/enabled = true
|
||||
bones/5/position = Vector3(2.55988e-06, 10.3218, 3.14243)
|
||||
bones/5/rotation = Quaternion(-6.06182e-09, 1.47156e-13, 1.4551e-11, 1)
|
||||
bones/5/rotation = Quaternion(-0.0401185, 0.192201, 0.0901439, 0.976383)
|
||||
bones/5/scale = Vector3(1, 1, 1)
|
||||
bones/6/name = "mixamorig_HeadTop_End"
|
||||
bones/6/parent = 5
|
||||
@ -2385,167 +2385,167 @@ bones/7/parent = 3
|
||||
bones/7/rest = Transform3D(-0.20123, 0.979319, -0.0210089, 0.00976801, -0.0194404, -0.999763, -0.979495, -0.201387, -0.00565398, 6.10582, 9.10625, 0.75706)
|
||||
bones/7/enabled = true
|
||||
bones/7/position = Vector3(6.10582, 9.10625, 0.75706)
|
||||
bones/7/rotation = Quaternion(-0.453869, -0.544821, 0.551167, -0.439759)
|
||||
bones/7/rotation = Quaternion(-0.292857, -0.333789, 0.669087, -0.595938)
|
||||
bones/7/scale = Vector3(1, 1, 1)
|
||||
bones/8/name = "mixamorig_LeftArm"
|
||||
bones/8/parent = 7
|
||||
bones/8/rest = Transform3D(0.979535, -0.20123, -0.00422908, 0.201275, 0.979318, 0.0205813, 2.98023e-08, -0.0210113, 0.999779, 1.2517e-06, 12.9223, 2.02477e-05)
|
||||
bones/8/enabled = true
|
||||
bones/8/position = Vector3(-4.4889e-07, 12.9223, 3.67336e-06)
|
||||
bones/8/rotation = Quaternion(-0.0104713, -0.00106493, 0.101149, 0.994816)
|
||||
bones/8/position = Vector3(-1.53866e-06, 12.9223, -1.30315e-05)
|
||||
bones/8/rotation = Quaternion(0.476371, -0.225737, 0.315342, 0.789096)
|
||||
bones/8/scale = Vector3(1, 1, 1)
|
||||
bones/9/name = "mixamorig_LeftForeArm"
|
||||
bones/9/parent = 8
|
||||
bones/9/rest = Transform3D(1, 2.3344e-08, 1.63133e-08, -2.3344e-08, 1, -1.23929e-06, -1.63133e-08, 1.23929e-06, 1, 1.34292e-05, 27.4047, 1.27254e-05)
|
||||
bones/9/enabled = true
|
||||
bones/9/position = Vector3(-3.06302e-07, 27.4047, -7.87434e-06)
|
||||
bones/9/rotation = Quaternion(5.90128e-07, -6.6465e-08, -7.68402e-09, 1)
|
||||
bones/9/position = Vector3(1.85704e-06, 27.4047, 5.56188e-06)
|
||||
bones/9/rotation = Quaternion(6.19771e-07, -4.16538e-07, 0.537205, 0.843451)
|
||||
bones/9/scale = Vector3(1, 1, 1)
|
||||
bones/10/name = "mixamorig_LeftHand"
|
||||
bones/10/parent = 9
|
||||
bones/10/rest = Transform3D(1, 1.28733e-07, -1.28721e-07, -1.28733e-07, 1, -1.41334e-06, 1.28721e-07, 1.41334e-06, 1, -8.88504e-08, 27.6145, 1.39405e-06)
|
||||
bones/10/enabled = true
|
||||
bones/10/position = Vector3(-8.88504e-08, 27.6145, 1.39405e-06)
|
||||
bones/10/rotation = Quaternion(7.66276e-07, 1.14453e-07, 5.48429e-08, 1)
|
||||
bones/10/rotation = Quaternion(-0.133348, -0.82721, -0.24662, 0.486951)
|
||||
bones/10/scale = Vector3(1, 1, 1)
|
||||
bones/11/name = "mixamorig_LeftHandThumb1"
|
||||
bones/11/parent = 10
|
||||
bones/11/rest = Transform3D(0.894428, -0.447212, -6.63102e-07, 0.387297, 0.774599, -0.499998, 0.223605, 0.447212, 0.866027, -3.00297, 3.78882, 2.16716)
|
||||
bones/11/enabled = true
|
||||
bones/11/position = Vector3(-3.00297, 3.78882, 2.16716)
|
||||
bones/11/rotation = Quaternion(0.251894, -0.0594644, 0.221924, 0.940087)
|
||||
bones/11/rotation = Quaternion(0.226774, -0.0325136, 0.13459, 0.964055)
|
||||
bones/11/scale = Vector3(1, 1, 1)
|
||||
bones/12/name = "mixamorig_LeftHandThumb2"
|
||||
bones/12/parent = 11
|
||||
bones/12/rest = Transform3D(1, -1.80304e-06, 5.64528e-07, 1.80304e-06, 1, -1.46432e-05, -5.64502e-07, 1.46432e-05, 1, -1.01328e-06, 4.74499, 1.43451e-05)
|
||||
bones/12/enabled = true
|
||||
bones/12/position = Vector3(3.08091e-11, 4.74498, 1.20503e-05)
|
||||
bones/12/rotation = Quaternion(4.4761e-07, 2.69369e-07, -5.58773e-08, 1)
|
||||
bones/12/position = Vector3(-2.44377e-06, 4.74499, 2.62184e-05)
|
||||
bones/12/rotation = Quaternion(0.0136355, 0.16912, -0.0632455, 0.98347)
|
||||
bones/12/scale = Vector3(1, 1, 1)
|
||||
bones/13/name = "mixamorig_LeftHandThumb3"
|
||||
bones/13/parent = 12
|
||||
bones/13/rest = Transform3D(1, 4.09782e-07, -4.12789e-08, -4.09782e-07, 1, -1.57751e-06, 4.12782e-08, 1.57751e-06, 1, 1.78814e-07, 4.38212, -3.23343e-05)
|
||||
bones/13/enabled = true
|
||||
bones/13/position = Vector3(4.17235e-07, 4.38213, 1.76309e-05)
|
||||
bones/13/rotation = Quaternion(7.27775e-07, -1.0394e-09, -2.04891e-07, 1)
|
||||
bones/13/position = Vector3(-8.76189e-06, 4.38211, -1.24808e-05)
|
||||
bones/13/rotation = Quaternion(-0.0116219, 0.0130988, 0.0923105, 0.995576)
|
||||
bones/13/scale = Vector3(1, 1, 1)
|
||||
bones/14/name = "mixamorig_LeftHandThumb4"
|
||||
bones/14/parent = 13
|
||||
bones/14/rest = Transform3D(0.958041, -0.140321, 0.249933, 0.144917, 0.989444, 1.12895e-05, -0.247297, 0.0362089, 0.968263, -8.70228e-06, 3.45907, 1.36913e-05)
|
||||
bones/14/enabled = true
|
||||
bones/14/position = Vector3(-5.50202e-06, 3.45908, 6.69457e-06)
|
||||
bones/14/position = Vector3(-5.74394e-06, 3.45909, 1.18662e-05)
|
||||
bones/14/rotation = Quaternion(0.00914623, 0.125638, 0.0720727, 0.989412)
|
||||
bones/14/scale = Vector3(1, 1, 1)
|
||||
bones/15/name = "mixamorig_LeftHandIndex1"
|
||||
bones/15/parent = 10
|
||||
bones/15/rest = Transform3D(1, -9.37265e-06, 6.57518e-08, 9.37265e-06, 1, -1.29793e-06, -6.57397e-08, 1.29793e-06, 1, -2.82204, 12.2666, 0.231821)
|
||||
bones/15/enabled = true
|
||||
bones/15/position = Vector3(-2.82204, 12.2666, 0.231834)
|
||||
bones/15/rotation = Quaternion(-1.6409e-07, 1.16529e-07, -2.37238e-07, 1)
|
||||
bones/15/position = Vector3(-2.82204, 12.2666, 0.231828)
|
||||
bones/15/rotation = Quaternion(0.315087, -0.012616, -0.0318686, 0.948444)
|
||||
bones/15/scale = Vector3(1, 1, 1)
|
||||
bones/16/name = "mixamorig_LeftHandIndex2"
|
||||
bones/16/parent = 15
|
||||
bones/16/rest = Transform3D(1, 1.2435e-05, -2.83857e-08, -1.2435e-05, 1, 3.10738e-06, 2.84244e-08, -3.10738e-06, 1, -2.50166e-08, 3.89196, 5.01929e-06)
|
||||
bones/16/enabled = true
|
||||
bones/16/position = Vector3(-4.09112e-07, 3.89198, -7.87749e-06)
|
||||
bones/16/rotation = Quaternion(-1.67293e-06, -7.37978e-08, -1.68467e-07, 1)
|
||||
bones/16/position = Vector3(-1.60102e-06, 3.89196, 1.93388e-06)
|
||||
bones/16/rotation = Quaternion(0.499467, -3.529e-06, -0.0511893, 0.864819)
|
||||
bones/16/scale = Vector3(1, 1, 1)
|
||||
bones/17/name = "mixamorig_LeftHandIndex3"
|
||||
bones/17/parent = 16
|
||||
bones/17/rest = Transform3D(1, 1.13465e-08, -1.13467e-08, -1.13465e-08, 1, -1.26303e-07, 1.13467e-08, 1.26303e-07, 1, 1.08575e-07, 3.41516, 9.73021e-06)
|
||||
bones/17/enabled = true
|
||||
bones/17/position = Vector3(-2.71628e-07, 3.41517, -1.60054e-05)
|
||||
bones/17/rotation = Quaternion(-2.62589e-08, 9.22777e-09, 1.13536e-07, 1)
|
||||
bones/17/position = Vector3(6.78652e-07, 3.41516, -5.08271e-07)
|
||||
bones/17/rotation = Quaternion(0.209056, -2.50771e-07, -0.0214234, 0.977669)
|
||||
bones/17/scale = Vector3(1, 1, 1)
|
||||
bones/18/name = "mixamorig_LeftHandIndex4"
|
||||
bones/18/parent = 17
|
||||
bones/18/rest = Transform3D(0.999968, -4.53911e-05, 0.00800312, 4.54293e-05, 1, -4.59375e-06, -0.00800312, 4.95718e-06, 0.999968, -1.92969e-07, 3.078, 1.31614e-05)
|
||||
bones/18/enabled = true
|
||||
bones/18/position = Vector3(-2.62556e-07, 3.078, -8.32949e-06)
|
||||
bones/18/position = Vector3(-4.72375e-06, 3.07802, 1.6312e-05)
|
||||
bones/18/rotation = Quaternion(2.38775e-06, 0.00400159, 2.27053e-05, 0.999992)
|
||||
bones/18/scale = Vector3(1, 1, 1)
|
||||
bones/19/name = "mixamorig_LeftHandMiddle1"
|
||||
bones/19/parent = 10
|
||||
bones/19/rest = Transform3D(1, -1.66071e-09, 1.2087e-07, 1.66057e-09, 1, 1.11591e-06, -1.2087e-07, -1.11591e-06, 1, -1.25753e-05, 12.7755, -7.51636e-06)
|
||||
bones/19/enabled = true
|
||||
bones/19/position = Vector3(-1.88015e-05, 12.7755, -8.90084e-07)
|
||||
bones/19/rotation = Quaternion(-1.49023e-06, 8.75701e-08, 3.72816e-07, 1)
|
||||
bones/19/position = Vector3(-1.27031e-05, 12.7755, -1.41741e-05)
|
||||
bones/19/rotation = Quaternion(0.441252, -0.0180713, -0.0446253, 0.896091)
|
||||
bones/19/scale = Vector3(1, 1, 1)
|
||||
bones/20/name = "mixamorig_LeftHandMiddle2"
|
||||
bones/20/parent = 19
|
||||
bones/20/rest = Transform3D(1, -5.88088e-09, 5.8803e-09, 5.88089e-09, 1, -4.58444e-07, -5.8803e-09, 4.58444e-07, 1, 1.52746e-07, 3.61396, -1.73848e-06)
|
||||
bones/20/enabled = true
|
||||
bones/20/position = Vector3(-9.55689e-09, 3.61397, 9.67869e-06)
|
||||
bones/20/rotation = Quaternion(2.88821e-07, -5.66644e-08, -1.16269e-07, 1)
|
||||
bones/20/position = Vector3(-2.13426e-07, 3.61397, -2.6069e-05)
|
||||
bones/20/rotation = Quaternion(0.535763, -5.42712e-07, -0.0549033, 0.842581)
|
||||
bones/20/scale = Vector3(1, 1, 1)
|
||||
bones/21/name = "mixamorig_LeftHandMiddle3"
|
||||
bones/21/parent = 20
|
||||
bones/21/rest = Transform3D(1, 8.25521e-09, -8.25436e-09, -8.25522e-09, 1, -1.13706e-06, 8.25435e-09, 1.13706e-06, 1, 2.8707e-05, 3.45977, 2.73836e-06)
|
||||
bones/21/enabled = true
|
||||
bones/21/position = Vector3(2.8707e-05, 3.45977, 2.73836e-06)
|
||||
bones/21/rotation = Quaternion(5.68527e-07, 1.15082e-07, -4.12756e-09, 1)
|
||||
bones/21/rotation = Quaternion(0.154932, 2.99348e-08, -0.015877, 0.987798)
|
||||
bones/21/scale = Vector3(1, 1, 1)
|
||||
bones/22/name = "mixamorig_LeftHandMiddle4"
|
||||
bones/22/parent = 21
|
||||
bones/22/rest = Transform3D(0.999957, 0.00130825, 0.00915879, -0.00130827, 0.999999, -3.68991e-06, -0.00915879, -8.29246e-06, 0.999958, -3.14252e-05, 3.68019, 3.04039e-06)
|
||||
bones/22/enabled = true
|
||||
bones/22/position = Vector3(-3.05174e-05, 3.6802, 5.50807e-06)
|
||||
bones/22/position = Vector3(-2.96244e-05, 3.6802, 5.40483e-06)
|
||||
bones/22/rotation = Quaternion(-1.15065e-06, 0.00457944, -0.000654139, 0.999989)
|
||||
bones/22/scale = Vector3(1, 1, 1)
|
||||
bones/23/name = "mixamorig_LeftHandRing1"
|
||||
bones/23/parent = 10
|
||||
bones/23/rest = Transform3D(1, -9.13638e-06, 1.97001e-07, 9.13638e-06, 1, 1.43092e-06, -1.97014e-07, -1.43092e-06, 1, 2.21664, 12.147, -0.00999657)
|
||||
bones/23/enabled = true
|
||||
bones/23/position = Vector3(2.21663, 12.147, -0.00999328)
|
||||
bones/23/rotation = Quaternion(-1.58812e-06, 1.82163e-07, 4.57688e-07, 1)
|
||||
bones/23/position = Vector3(2.21663, 12.147, -0.00997245)
|
||||
bones/23/rotation = Quaternion(0.507393, -0.0260022, -0.0427293, 0.860262)
|
||||
bones/23/scale = Vector3(1, 1, 1)
|
||||
bones/24/name = "mixamorig_LeftHandRing2"
|
||||
bones/24/parent = 23
|
||||
bones/24/rest = Transform3D(1, 1.61871e-05, -9.45085e-08, -1.61871e-05, 1, 3.29224e-06, 9.45618e-08, -3.29224e-06, 1, 6.3543e-07, 3.60118, -1.47875e-05)
|
||||
bones/24/enabled = true
|
||||
bones/24/position = Vector3(7.24609e-07, 3.60118, 1.36966e-05)
|
||||
bones/24/rotation = Quaternion(8.82448e-07, -9.2e-08, -1.20371e-07, 1)
|
||||
bones/24/position = Vector3(-9.02816e-06, 3.60119, 5.8729e-06)
|
||||
bones/24/rotation = Quaternion(0.586002, -5.2301e-06, -0.0600583, 0.808081)
|
||||
bones/24/scale = Vector3(1, 1, 1)
|
||||
bones/25/name = "mixamorig_LeftHandRing3"
|
||||
bones/25/parent = 24
|
||||
bones/25/rest = Transform3D(1, -4.06519e-07, 4.06481e-07, 4.06519e-07, 1, -5.56489e-07, -4.06481e-07, 5.56489e-07, 1, 6.32906e-07, 3.30733, 4.49974e-06)
|
||||
bones/25/enabled = true
|
||||
bones/25/position = Vector3(-2.17763e-07, 3.30732, 4.97229e-06)
|
||||
bones/25/rotation = Quaternion(3.67653e-07, 2.62845e-07, 8.40501e-08, 1)
|
||||
bones/25/position = Vector3(-1.87815e-06, 3.30733, 1.27624e-05)
|
||||
bones/25/rotation = Quaternion(0.22264, 8.00283e-08, -0.0228152, 0.974634)
|
||||
bones/25/scale = Vector3(1, 1, 1)
|
||||
bones/26/name = "mixamorig_LeftHandRing4"
|
||||
bones/26/parent = 25
|
||||
bones/26/rest = Transform3D(0.999889, -0.00154095, 0.0147921, 0.00154121, 0.999999, -6.38454e-06, -0.0147921, 2.91815e-05, 0.999891, -2.34259e-05, 3.6601, 3.25409e-05)
|
||||
bones/26/enabled = true
|
||||
bones/26/position = Vector3(-2.26338e-05, 3.66012, 1.80602e-05)
|
||||
bones/26/position = Vector3(-1.63172e-05, 3.66012, 2.35249e-05)
|
||||
bones/26/rotation = Quaternion(8.89176e-06, 0.00739624, 0.00077056, 0.999972)
|
||||
bones/26/scale = Vector3(1, 1, 1)
|
||||
bones/27/name = "mixamorig_LeftHandPinky1"
|
||||
bones/27/parent = 10
|
||||
bones/27/rest = Transform3D(1, -0.000281838, 3.45828e-07, 0.000281838, 1, -2.70877e-06, -3.45064e-07, 2.70887e-06, 1, 4.72584, 10.9082, 0.226131)
|
||||
bones/27/enabled = true
|
||||
bones/27/position = Vector3(4.72583, 10.9082, 0.226135)
|
||||
bones/27/rotation = Quaternion(-1.38282e-06, 2.55455e-07, -1.99914e-07, 1)
|
||||
bones/27/position = Vector3(4.72584, 10.9082, 0.226131)
|
||||
bones/27/rotation = Quaternion(0.591179, -0.0694607, 0.00196639, 0.803542)
|
||||
bones/27/scale = Vector3(1, 1, 1)
|
||||
bones/28/name = "mixamorig_LeftHandPinky2"
|
||||
bones/28/parent = 27
|
||||
bones/28/rest = Transform3D(1, 0.000736602, -7.57697e-07, -0.000736602, 1, 9.24707e-06, 7.64508e-07, -9.24651e-06, 1, 1.0844e-06, 4.13666, 1.41886e-05)
|
||||
bones/28/enabled = true
|
||||
bones/28/position = Vector3(-4.3383e-07, 4.13666, 6.70517e-06)
|
||||
bones/28/rotation = Quaternion(1.60433e-06, -3.53546e-07, 2.32562e-08, 1)
|
||||
bones/28/position = Vector3(-5.0939e-07, 4.13664, -1.88605e-07)
|
||||
bones/28/rotation = Quaternion(0.528811, -0.000195663, -0.0545031, 0.846988)
|
||||
bones/28/scale = Vector3(1, 1, 1)
|
||||
bones/29/name = "mixamorig_LeftHandPinky3"
|
||||
bones/29/parent = 28
|
||||
bones/29/rest = Transform3D(1, -0.000460831, 1.12128e-06, 0.000460831, 1, -1.05882e-05, -1.1164e-06, 1.05887e-05, 1, -6.12206e-07, 2.59482, 1.85099e-05)
|
||||
bones/29/enabled = true
|
||||
bones/29/position = Vector3(1.60847e-06, 2.59483, -2.53178e-05)
|
||||
bones/29/rotation = Quaternion(1.74385e-06, 5.59028e-07, 8.44988e-07, 1)
|
||||
bones/29/position = Vector3(-7.67621e-06, 2.59482, -3.55555e-06)
|
||||
bones/29/rotation = Quaternion(0.122183, 2.8743e-05, -0.0122918, 0.992431)
|
||||
bones/29/scale = Vector3(1, 1, 1)
|
||||
bones/30/name = "mixamorig_LeftHandPinky4"
|
||||
bones/30/parent = 29
|
||||
bones/30/rest = Transform3D(0.999966, 0.00115073, 0.00819911, -0.00115078, 0.999999, 1.00218e-06, -0.0081991, -1.04375e-05, 0.999966, -1.25422e-06, 2.92387, 8.73622e-06)
|
||||
bones/30/enabled = true
|
||||
bones/30/position = Vector3(7.35185e-08, 2.92389, 1.55123e-05)
|
||||
bones/30/position = Vector3(2.42903e-06, 2.92386, 2.71829e-05)
|
||||
bones/30/rotation = Quaternion(-2.85994e-06, 0.00409959, -0.000575381, 0.999991)
|
||||
bones/30/scale = Vector3(1, 1, 1)
|
||||
bones/31/name = "mixamorig_RightShoulder"
|
||||
@ -2553,167 +2553,167 @@ bones/31/parent = 3
|
||||
bones/31/rest = Transform3D(-0.201228, -0.979319, 0.0210167, -0.00976938, -0.0194482, -0.999763, 0.979496, -0.201385, -0.00565398, -6.1057, 9.10635, 0.757074)
|
||||
bones/31/enabled = true
|
||||
bones/31/position = Vector3(-6.1057, 9.10635, 0.757074)
|
||||
bones/31/rotation = Quaternion(0.453804, -0.544876, 0.551112, 0.439828)
|
||||
bones/31/rotation = Quaternion(0.186932, -0.387812, 0.721975, 0.541674)
|
||||
bones/31/scale = Vector3(1, 1, 1)
|
||||
bones/32/name = "mixamorig_RightArm"
|
||||
bones/32/parent = 31
|
||||
bones/32/rest = Transform3D(0.979535, 0.201228, 0.00423029, -0.201272, 0.979319, 0.020588, 6.65896e-08, -0.0210181, 0.999779, -3.57628e-07, 12.9223, 1.30742e-05)
|
||||
bones/32/enabled = true
|
||||
bones/32/position = Vector3(5.09534e-07, 12.9223, -2.75096e-05)
|
||||
bones/32/rotation = Quaternion(-0.0104358, 0.00106128, -0.10115, 0.994816)
|
||||
bones/32/position = Vector3(-6.22771e-07, 12.9223, -1.27459e-05)
|
||||
bones/32/rotation = Quaternion(0.472766, -0.178101, -0.614989, 0.605443)
|
||||
bones/32/scale = Vector3(1, 1, 1)
|
||||
bones/33/name = "mixamorig_RightForeArm"
|
||||
bones/33/parent = 32
|
||||
bones/33/rest = Transform3D(1, -5.84677e-08, 3.90717e-08, 5.84677e-08, 1, -4.48963e-07, -3.90717e-08, 4.48963e-07, 1, -7.61224e-07, 27.4047, -2.11461e-06)
|
||||
bones/33/enabled = true
|
||||
bones/33/position = Vector3(-7.61224e-07, 27.4047, -2.11461e-06)
|
||||
bones/33/rotation = Quaternion(1.94927e-07, 9.39901e-08, 2.65805e-08, 1)
|
||||
bones/33/rotation = Quaternion(4.81914e-08, 1.12034e-07, -0.757252, 0.653122)
|
||||
bones/33/scale = Vector3(1, 1, 1)
|
||||
bones/34/name = "mixamorig_RightHand"
|
||||
bones/34/parent = 33
|
||||
bones/34/rest = Transform3D(1, -4.75946e-09, 4.7599e-09, 4.75946e-09, 1, 5.92689e-07, -4.7599e-09, -5.92689e-07, 1, 1.32686e-05, 27.6144, -7.82493e-06)
|
||||
bones/34/enabled = true
|
||||
bones/34/position = Vector3(1.36228e-05, 27.6145, 7.65566e-06)
|
||||
bones/34/rotation = Quaternion(-2.36742e-07, -1.76434e-07, -1.1683e-07, 1)
|
||||
bones/34/position = Vector3(9.10594e-06, 27.6145, 4.44178e-06)
|
||||
bones/34/rotation = Quaternion(-0.160112, 0.388896, 0.240347, 0.874847)
|
||||
bones/34/scale = Vector3(1, 1, 1)
|
||||
bones/35/name = "mixamorig_RightHandThumb1"
|
||||
bones/35/parent = 34
|
||||
bones/35/rest = Transform3D(0.894428, 0.447212, -8.12113e-07, -0.387297, 0.774597, -0.500001, -0.223606, 0.447215, 0.866025, 3.00297, 3.7888, 2.16716)
|
||||
bones/35/enabled = true
|
||||
bones/35/position = Vector3(3.00297, 3.78879, 2.16713)
|
||||
bones/35/rotation = Quaternion(0.251896, 0.0594644, -0.221924, 0.940086)
|
||||
bones/35/position = Vector3(3.00296, 3.78881, 2.16716)
|
||||
bones/35/rotation = Quaternion(0.3492, 0.0275953, -0.150874, 0.924411)
|
||||
bones/35/scale = Vector3(1, 1, 1)
|
||||
bones/36/name = "mixamorig_RightHandThumb2"
|
||||
bones/36/parent = 35
|
||||
bones/36/rest = Transform3D(1, 1.22189e-06, -2.83909e-07, -1.2219e-06, 1, -1.53374e-05, 2.8389e-07, 1.53374e-05, 1, 1.055e-05, 4.74496, -4.47486e-05)
|
||||
bones/36/enabled = true
|
||||
bones/36/position = Vector3(5.12599e-06, 4.74495, 9.40645e-06)
|
||||
bones/36/rotation = Quaternion(-1.04222e-06, -1.73099e-07, -6.09086e-07, 1)
|
||||
bones/36/position = Vector3(1.3709e-06, 4.74495, -1.7044e-05)
|
||||
bones/36/rotation = Quaternion(-0.112008, -0.18788, 0.210872, 0.952727)
|
||||
bones/36/scale = Vector3(1, 1, 1)
|
||||
bones/37/name = "mixamorig_RightHandThumb3"
|
||||
bones/37/parent = 36
|
||||
bones/37/rest = Transform3D(1, -6.25849e-07, 1.30346e-06, 6.25848e-07, 1, 4.98992e-07, -1.30346e-06, -4.98991e-07, 1, -5.84126e-06, 4.38215, 1.93096e-05)
|
||||
bones/37/enabled = true
|
||||
bones/37/position = Vector3(-1.66891e-06, 4.38214, 2.41443e-05)
|
||||
bones/37/rotation = Quaternion(-2.45307e-07, 6.58254e-07, 3.27826e-07, 1)
|
||||
bones/37/position = Vector3(-1.69873e-05, 4.38215, 1.97212e-05)
|
||||
bones/37/rotation = Quaternion(-0.27213, -0.0182464, 0.407841, 0.871366)
|
||||
bones/37/scale = Vector3(1, 1, 1)
|
||||
bones/38/name = "mixamorig_RightHandThumb4"
|
||||
bones/38/parent = 37
|
||||
bones/38/rest = Transform3D(0.957213, 0.140747, -0.252852, -0.145442, 0.989367, 0.000125045, 0.250181, 0.0366556, 0.967505, 1.41859e-05, 3.45906, -2.79579e-05)
|
||||
bones/38/enabled = true
|
||||
bones/38/position = Vector3(1.2856e-05, 3.45907, -3.01294e-05)
|
||||
bones/38/position = Vector3(1.97295e-05, 3.45906, -2.85777e-05)
|
||||
bones/38/rotation = Quaternion(0.00923232, -0.127131, -0.0723282, 0.989202)
|
||||
bones/38/scale = Vector3(1, 1, 1)
|
||||
bones/39/name = "mixamorig_RightHandIndex1"
|
||||
bones/39/parent = 34
|
||||
bones/39/rest = Transform3D(1, 9.55643e-06, -1.00891e-07, -9.55643e-06, 1, -9.57115e-08, 1.0089e-07, 9.57124e-08, 1, 2.82204, 12.2666, 0.231828)
|
||||
bones/39/enabled = true
|
||||
bones/39/position = Vector3(2.82204, 12.2666, 0.231816)
|
||||
bones/39/rotation = Quaternion(-7.94997e-07, -7.98175e-08, -4.74571e-07, 1)
|
||||
bones/39/position = Vector3(2.82205, 12.2666, 0.231838)
|
||||
bones/39/rotation = Quaternion(0.108167, 0.00638881, -0.0154789, 0.993992)
|
||||
bones/39/scale = Vector3(1, 1, 1)
|
||||
bones/40/name = "mixamorig_RightHandIndex2"
|
||||
bones/40/parent = 39
|
||||
bones/40/rest = Transform3D(1, -8.32291e-06, 1.78601e-07, 8.32292e-06, 1, -3.10355e-06, -1.78575e-07, 3.10355e-06, 1, 1.20817e-07, 3.89197, -6.39381e-06)
|
||||
bones/40/enabled = true
|
||||
bones/40/position = Vector3(4.14245e-07, 3.89198, -9.14686e-06)
|
||||
bones/40/rotation = Quaternion(1.46236e-06, 8.17035e-08, -1.04633e-08, 1)
|
||||
bones/40/position = Vector3(2.67281e-07, 3.89196, 5.3337e-07)
|
||||
bones/40/rotation = Quaternion(0.282952, 1.57591e-06, 0.0230536, 0.958857)
|
||||
bones/40/scale = Vector3(1, 1, 1)
|
||||
bones/41/name = "mixamorig_RightHandIndex3"
|
||||
bones/41/parent = 40
|
||||
bones/41/rest = Transform3D(1, -2.59014e-08, 2.59035e-08, 2.59014e-08, 1, 1.26285e-07, -2.59035e-08, -1.26285e-07, 1, -1.30692e-05, 3.41516, -1.14734e-05)
|
||||
bones/41/enabled = true
|
||||
bones/41/position = Vector3(1.72386e-08, 3.41517, -2.10165e-05)
|
||||
bones/41/rotation = Quaternion(-1.52544e-07, -1.94936e-09, -1.06259e-07, 1)
|
||||
bones/41/position = Vector3(-2.04329e-05, 3.41516, 2.13089e-06)
|
||||
bones/41/rotation = Quaternion(0.2567, 1.11323e-07, 0.0209115, 0.966265)
|
||||
bones/41/scale = Vector3(1, 1, 1)
|
||||
bones/42/name = "mixamorig_RightHandIndex4"
|
||||
bones/42/parent = 41
|
||||
bones/42/rest = Transform3D(0.999906, -0.00274841, -0.0134184, 0.00275035, 0.999996, 0.0001267, 0.013418, -0.000163594, 0.99991, -2.45018e-08, 3.07798, 1.54882e-05)
|
||||
bones/42/enabled = true
|
||||
bones/42/position = Vector3(-4.80673e-08, 3.078, -2.2078e-05)
|
||||
bones/42/position = Vector3(7.7806e-06, 3.07799, 5.11456e-06)
|
||||
bones/42/rotation = Quaternion(-7.25752e-05, -0.00670925, 0.00137472, 0.999977)
|
||||
bones/42/scale = Vector3(1, 1, 1)
|
||||
bones/43/name = "mixamorig_RightHandMiddle1"
|
||||
bones/43/parent = 34
|
||||
bones/43/rest = Transform3D(1, 7.9996e-07, 3.4435e-08, -7.9996e-07, 1, -2.50553e-06, -3.4437e-08, 2.50553e-06, 1, 1.69482e-05, 12.7755, 1.851e-05)
|
||||
bones/43/enabled = true
|
||||
bones/43/position = Vector3(1.71505e-05, 12.7755, -4.90337e-06)
|
||||
bones/43/rotation = Quaternion(3.20494e-07, -1.9841e-08, -5.19228e-07, 1)
|
||||
bones/43/position = Vector3(8.25558e-06, 12.7755, 1.43259e-05)
|
||||
bones/43/rotation = Quaternion(0.432903, 0.000558598, 0.0692872, 0.898774)
|
||||
bones/43/scale = Vector3(1, 1, 1)
|
||||
bones/44/name = "mixamorig_RightHandMiddle2"
|
||||
bones/44/parent = 43
|
||||
bones/44/rest = Transform3D(1, -7.31344e-08, 7.31408e-08, 7.31344e-08, 1, 4.58433e-07, -7.31408e-08, -4.58433e-07, 1, -1.34369e-07, 3.61397, -2.13428e-07)
|
||||
bones/44/enabled = true
|
||||
bones/44/position = Vector3(4.30426e-07, 3.61398, -2.10967e-05)
|
||||
bones/44/rotation = Quaternion(-1.69612e-07, 9.6175e-08, 1.55776e-07, 1)
|
||||
bones/44/position = Vector3(9.59093e-06, 3.61397, -2.13169e-06)
|
||||
bones/44/rotation = Quaternion(0.8193, 5.41083e-07, 0.0667421, 0.569468)
|
||||
bones/44/scale = Vector3(1, 1, 1)
|
||||
bones/45/name = "mixamorig_RightHandMiddle3"
|
||||
bones/45/parent = 44
|
||||
bones/45/rest = Transform3D(1, 4.70179e-08, -4.7022e-08, -4.70179e-08, 1, 1.13706e-06, 4.7022e-08, -1.13706e-06, 1, -2.92933e-05, 3.45976, -5.10256e-06)
|
||||
bones/45/enabled = true
|
||||
bones/45/position = Vector3(-2.87158e-05, 3.45976, -2.28587e-05)
|
||||
bones/45/rotation = Quaternion(-5.68527e-07, -1.4272e-07, -2.35089e-08, 1)
|
||||
bones/45/position = Vector3(-3.83435e-05, 3.45976, 1.31743e-07)
|
||||
bones/45/rotation = Quaternion(0.163199, 1.60019e-07, 0.0132946, 0.986504)
|
||||
bones/45/scale = Vector3(1, 1, 1)
|
||||
bones/46/name = "mixamorig_RightHandMiddle4"
|
||||
bones/46/parent = 45
|
||||
bones/46/rest = Transform3D(0.999905, 0.00341724, -0.0133901, -0.00341588, 0.999994, 0.000124528, 0.0133904, -7.8777e-05, 0.99991, 2.86955e-05, 3.68019, -2.04176e-05)
|
||||
bones/46/enabled = true
|
||||
bones/46/position = Vector3(2.86766e-05, 3.68019, -2.0147e-05)
|
||||
bones/46/position = Vector3(4.26348e-05, 3.68019, 1.92955e-06)
|
||||
bones/46/rotation = Quaternion(-5.08274e-05, -0.00669529, -0.00170832, 0.999976)
|
||||
bones/46/scale = Vector3(1, 1, 1)
|
||||
bones/47/name = "mixamorig_RightHandRing1"
|
||||
bones/47/parent = 34
|
||||
bones/47/rest = Transform3D(1, 9.66599e-06, -1.40744e-07, -9.66599e-06, 1, -2.81994e-06, 1.40717e-07, 2.81994e-06, 1, -2.21663, 12.147, -0.00999829)
|
||||
bones/47/enabled = true
|
||||
bones/47/position = Vector3(-2.21663, 12.147, -0.0100156)
|
||||
bones/47/rotation = Quaternion(5.37309e-07, -1.7425e-07, 4.02917e-07, 1)
|
||||
bones/47/position = Vector3(-2.21666, 12.147, -0.00998859)
|
||||
bones/47/rotation = Quaternion(0.477498, 0.0365047, 0.00596795, 0.877854)
|
||||
bones/47/scale = Vector3(1, 1, 1)
|
||||
bones/48/name = "mixamorig_RightHandRing2"
|
||||
bones/48/parent = 47
|
||||
bones/48/rest = Transform3D(1, -1.60845e-05, 3.26056e-09, 1.60845e-05, 1, 1.32059e-06, -3.2818e-09, -1.32059e-06, 1, -2.50026e-07, 3.6012, -7.75122e-07)
|
||||
bones/48/enabled = true
|
||||
bones/48/position = Vector3(4.13799e-07, 3.60121, -2.62163e-05)
|
||||
bones/48/rotation = Quaternion(-7.49721e-07, 4.63338e-08, 6.90424e-08, 1)
|
||||
bones/48/position = Vector3(-1.13276e-05, 3.6012, 1.28772e-06)
|
||||
bones/48/rotation = Quaternion(0.761649, 6.66899e-06, 0.062051, 0.645012)
|
||||
bones/48/scale = Vector3(1, 1, 1)
|
||||
bones/49/name = "mixamorig_RightHandRing3"
|
||||
bones/49/parent = 48
|
||||
bones/49/rest = Transform3D(1, -2.25764e-07, 2.25784e-07, 2.25764e-07, 1, 1.11976e-07, -2.25784e-07, -1.11976e-07, 1, 2.74476e-08, 3.3073, -4.63963e-06)
|
||||
bones/49/enabled = true
|
||||
bones/49/position = Vector3(-1.00252e-07, 3.30732, -4.47648e-06)
|
||||
bones/49/rotation = Quaternion(3.34203e-08, 6.81883e-08, 2.32091e-07, 1)
|
||||
bones/49/position = Vector3(-1.10798e-05, 3.30731, -1.91659e-07)
|
||||
bones/49/rotation = Quaternion(0.424966, 4.85972e-07, 0.0346187, 0.904547)
|
||||
bones/49/scale = Vector3(1, 1, 1)
|
||||
bones/50/name = "mixamorig_RightHandRing4"
|
||||
bones/50/parent = 49
|
||||
bones/50/rest = Transform3D(0.999884, 0.00060163, -0.0152262, -0.000599783, 1, 0.000125877, 0.0152263, -0.00011673, 0.999884, 2.28835e-05, 3.66011, 3.86379e-06)
|
||||
bones/50/enabled = true
|
||||
bones/50/position = Vector3(2.38237e-05, 3.66011, -8.93061e-06)
|
||||
bones/50/position = Vector3(2.72541e-05, 3.66012, 4.06134e-06)
|
||||
bones/50/rotation = Quaternion(-6.06535e-05, -0.00761335, -0.000300362, 0.999971)
|
||||
bones/50/scale = Vector3(1, 1, 1)
|
||||
bones/51/name = "mixamorig_RightHandPinky1"
|
||||
bones/51/parent = 34
|
||||
bones/51/rest = Transform3D(1, 6.22466e-06, -6.6552e-08, -6.22466e-06, 1, -2.36667e-06, 6.65373e-08, 2.36667e-06, 1, -4.72583, 10.9082, 0.226131)
|
||||
bones/51/enabled = true
|
||||
bones/51/position = Vector3(-4.72583, 10.9082, 0.226109)
|
||||
bones/51/rotation = Quaternion(1.9147e-07, -1.37464e-07, 3.7825e-07, 1)
|
||||
bones/51/position = Vector3(-4.72585, 10.9082, 0.226141)
|
||||
bones/51/rotation = Quaternion(0.534612, 0.0448649, 0.00571123, 0.843887)
|
||||
bones/51/scale = Vector3(1, 1, 1)
|
||||
bones/52/name = "mixamorig_RightHandPinky2"
|
||||
bones/52/parent = 51
|
||||
bones/52/rest = Transform3D(1, -2.08421e-05, 2.60955e-07, 2.08421e-05, 1, 3.20226e-07, -2.60961e-07, -3.2022e-07, 1, -9.56386e-07, 4.13664, -5.36287e-06)
|
||||
bones/52/enabled = true
|
||||
bones/52/position = Vector3(-6.12616e-07, 4.13665, -1.57756e-05)
|
||||
bones/52/rotation = Quaternion(-1.11197e-08, 8.57739e-08, -1.10525e-07, 1)
|
||||
bones/52/position = Vector3(4.19635e-06, 4.13664, -2.4955e-07)
|
||||
bones/52/rotation = Quaternion(0.658061, 7.45997e-06, 0.0536151, 0.751053)
|
||||
bones/52/scale = Vector3(1, 1, 1)
|
||||
bones/53/name = "mixamorig_RightHandPinky3"
|
||||
bones/53/parent = 52
|
||||
bones/53/rest = Transform3D(1, 2.11417e-05, -2.81975e-07, -2.11417e-05, 1, -5.11218e-07, 2.81964e-07, 5.11224e-07, 1, -7.33402e-07, 2.59484, -1.02788e-05)
|
||||
bones/53/enabled = true
|
||||
bones/53/position = Vector3(-1.0504e-06, 2.59485, -2.94114e-05)
|
||||
bones/53/rotation = Quaternion(1.96018e-07, -3.66792e-08, -3.92856e-08, 1)
|
||||
bones/53/position = Vector3(8.94955e-06, 2.59484, 7.97727e-08)
|
||||
bones/53/rotation = Quaternion(0.497383, -5.06186e-06, 0.0405088, 0.866585)
|
||||
bones/53/scale = Vector3(1, 1, 1)
|
||||
bones/54/name = "mixamorig_RightHandPinky4"
|
||||
bones/54/parent = 53
|
||||
bones/54/rest = Transform3D(0.999846, -0.00441081, -0.0169974, 0.00441363, 0.99999, 0.000128528, 0.0169966, -0.000203529, 0.999855, 3.92365e-07, 2.92388, -8.16629e-06)
|
||||
bones/54/enabled = true
|
||||
bones/54/position = Vector3(-1.20632e-06, 2.92389, -1.18557e-05)
|
||||
bones/54/position = Vector3(-4.02675e-06, 2.92387, 1.41498e-06)
|
||||
bones/54/rotation = Quaternion(-8.30174e-05, -0.00849883, 0.00220619, 0.999961)
|
||||
bones/54/scale = Vector3(1, 1, 1)
|
||||
bones/55/name = "mixamorig_LeftUpLeg"
|
||||
@ -2721,28 +2721,28 @@ bones/55/parent = 0
|
||||
bones/55/rest = Transform3D(-0.999982, 0.00593887, 7.83062e-05, -0.00593938, -0.999902, -0.0126999, 2.87533e-06, -0.0127002, 0.999919, 9.12387, -6.6572, -0.0554031)
|
||||
bones/55/enabled = true
|
||||
bones/55/position = Vector3(9.12387, -6.6572, -0.0554031)
|
||||
bones/55/rotation = Quaternion(2.03362e-05, -0.00633988, 0.999976, -0.00296972)
|
||||
bones/55/rotation = Quaternion(0.396123, 0.0660955, 0.903513, -0.149607)
|
||||
bones/55/scale = Vector3(1, 1, 1)
|
||||
bones/56/name = "mixamorig_LeftLeg"
|
||||
bones/56/parent = 55
|
||||
bones/56/rest = Transform3D(0.99993, 0.0118315, 0.000579731, -0.0118447, 0.999273, 0.0362199, -0.000150774, -0.0362242, 0.999344, -8.63573e-07, 40.5994, -7.20611e-08)
|
||||
bones/56/enabled = true
|
||||
bones/56/position = Vector3(-8.63573e-07, 40.5994, -7.20611e-08)
|
||||
bones/56/rotation = Quaternion(-0.0181341, 0.000182716, -0.00592014, 0.999818)
|
||||
bones/56/rotation = Quaternion(-0.208921, -0.00595327, -0.0106201, 0.977857)
|
||||
bones/56/scale = Vector3(1, 1, 1)
|
||||
bones/57/name = "mixamorig_LeftFoot"
|
||||
bones/57/parent = 56
|
||||
bones/57/rest = Transform3D(0.998342, -0.0264272, 0.0511338, 0.0574903, 0.414367, -0.908292, 0.00281544, 0.909726, 0.415199, -4.32148e-07, 42.099, -4.07919e-07)
|
||||
bones/57/enabled = true
|
||||
bones/57/position = Vector3(-3.97384e-07, 42.099, -2.03751e-06)
|
||||
bones/57/rotation = Quaternion(0.540558, 0.014366, 0.0249509, 0.840814)
|
||||
bones/57/position = Vector3(-5.64138e-07, 42.099, 1.64238e-06)
|
||||
bones/57/rotation = Quaternion(0.522195, -0.00603771, 0.011377, 0.852729)
|
||||
bones/57/scale = Vector3(1, 1, 1)
|
||||
bones/58/name = "mixamorig_LeftToeBase"
|
||||
bones/58/parent = 57
|
||||
bones/58/rest = Transform3D(0.997412, 0.0150935, -0.0702888, -0.0447132, 0.89584, -0.442121, 0.0562943, 0.444119, 0.894197, 1.14934e-06, 15.7216, 8.9407e-07)
|
||||
bones/58/enabled = true
|
||||
bones/58/position = Vector3(1.14934e-06, 15.7216, 8.9407e-07)
|
||||
bones/58/rotation = Quaternion(0.227692, -0.0325216, -0.0153655, 0.973069)
|
||||
bones/58/rotation = Quaternion(0.227692, -0.0325217, -0.0153654, 0.973069)
|
||||
bones/58/scale = Vector3(1, 1, 1)
|
||||
bones/59/name = "mixamorig_LeftToe_End"
|
||||
bones/59/parent = 58
|
||||
@ -2756,28 +2756,28 @@ bones/60/parent = 0
|
||||
bones/60/rest = Transform3D(-0.999981, -0.00611455, -7.52684e-05, 0.00611501, -0.999901, -0.0126672, 2.1931e-06, -0.0126674, 0.99992, -9.12503, -6.6556, -0.0553527)
|
||||
bones/60/enabled = true
|
||||
bones/60/position = Vector3(-9.12503, -6.6556, -0.0553527)
|
||||
bones/60/rotation = Quaternion(-1.82612e-05, -0.00633335, 0.999975, 0.00305726)
|
||||
bones/60/rotation = Quaternion(0.0463967, -0.0382505, 0.996894, 0.0508514)
|
||||
bones/60/scale = Vector3(1, 1, 1)
|
||||
bones/61/name = "mixamorig_RightLeg"
|
||||
bones/61/parent = 60
|
||||
bones/61/rest = Transform3D(0.99993, -0.0118315, -0.000580536, 0.0118448, 0.999271, 0.0362854, 0.000150802, -0.0362897, 0.999341, 3.28565e-07, 40.5995, 1.49012e-08)
|
||||
bones/61/enabled = true
|
||||
bones/61/position = Vector3(3.28565e-07, 40.5995, 1.49012e-08)
|
||||
bones/61/rotation = Quaternion(-0.0181471, -0.000182865, 0.00592015, 0.999818)
|
||||
bones/61/rotation = Quaternion(-0.286168, 0.00468048, 0.014211, 0.958063)
|
||||
bones/61/scale = Vector3(1, 1, 1)
|
||||
bones/62/name = "mixamorig_RightFoot"
|
||||
bones/62/parent = 61
|
||||
bones/62/rest = Transform3D(0.998342, 0.0264271, -0.0511337, -0.0574901, 0.414337, -0.908306, -0.0028173, 0.90974, 0.415169, 2.71709e-07, 42.099, -1.01514e-07)
|
||||
bones/62/enabled = true
|
||||
bones/62/position = Vector3(2.71709e-07, 42.099, -1.01514e-07)
|
||||
bones/62/rotation = Quaternion(0.540563, -0.0143663, -0.0249517, 0.840811)
|
||||
bones/62/rotation = Quaternion(0.676146, 0.144702, -0.0423367, 0.721177)
|
||||
bones/62/scale = Vector3(1, 1, 1)
|
||||
bones/63/name = "mixamorig_RightToeBase"
|
||||
bones/63/parent = 62
|
||||
bones/63/rest = Transform3D(0.997471, -0.0150664, 0.0694586, 0.044322, 0.895832, -0.442177, -0.0555612, 0.444137, 0.894234, 1.55898e-07, 15.7216, 3.8445e-06)
|
||||
bones/63/enabled = true
|
||||
bones/63/position = Vector3(1.55898e-07, 15.7216, 3.8445e-06)
|
||||
bones/63/rotation = Quaternion(0.227709, 0.0321196, 0.0152578, 0.97308)
|
||||
bones/63/rotation = Quaternion(0.227883, 0.0321192, 0.0152547, 0.973039)
|
||||
bones/63/scale = Vector3(1, 1, 1)
|
||||
bones/64/name = "mixamorig_RightToe_End"
|
||||
bones/64/parent = 63
|
||||
@ -2796,7 +2796,7 @@ mesh = SubResource("ArrayMesh_7ywky")
|
||||
skin = SubResource("Skin_rvj8b")
|
||||
|
||||
[node name="HeadAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(1, -8.72661e-05, -2.03595e-07, 2.03593e-07, -1.86429e-08, 1, -8.72661e-05, -1, -1.86429e-08, -0.00445369, -0.340739, -160.075)
|
||||
transform = Transform3D(0.882565, -0.444116, -0.154401, 0.270521, 0.211033, 0.939299, -0.384574, -0.870762, 0.306393, -6.4511, 7.27767, -150.755)
|
||||
bone_name = "mixamorig_Head"
|
||||
bone_idx = 5
|
||||
|
||||
@ -2813,7 +2813,7 @@ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0,
|
||||
shape = SubResource("CapsuleShape3D_yrrmu")
|
||||
|
||||
[node name="TorsoAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(1, -7.97892e-05, -1.47531e-05, 5.00268e-06, -0.120847, 0.992671, -8.09873e-05, -0.992671, -0.120847, -0.0011945, -2.64962, -121.361)
|
||||
transform = Transform3D(0.766679, -0.0560176, -0.639582, 0.64197, 0.0531821, 0.764883, -0.00883259, -0.997012, 0.0767353, 3.85161, -5.43985, -116.78)
|
||||
bone_name = "mixamorig_Spine1"
|
||||
bone_idx = 2
|
||||
|
||||
@ -2827,7 +2827,7 @@ body_part = "Torso"
|
||||
shape = SubResource("CapsuleShape3D_tr87i")
|
||||
|
||||
[node name="RightHipAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-0.999982, -0.00602634, -7.76412e-05, -1.30229e-06, -0.0126665, 0.99992, -0.00602684, 0.999902, 0.0126663, -9.12448, -0.0553331, -93.1355)
|
||||
transform = Transform3D(-0.807937, -0.161163, -0.566802, -0.581917, 0.0667467, 0.810505, -0.092791, 0.984668, -0.14771, -7.363, -5.25271, -89.2051)
|
||||
bone_name = "mixamorig_RightUpLeg"
|
||||
bone_idx = 60
|
||||
|
||||
@ -2843,7 +2843,7 @@ transform = Transform3D(0.997222, -0.0744854, -0.000943551, 0.0744854, 0.997222,
|
||||
shape = SubResource("CapsuleShape3D_xyxrh")
|
||||
|
||||
[node name="RightLegAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-0.999983, 0.00581216, 0.000284262, -5.50164e-07, -0.0489441, 0.998802, 0.00581911, 0.998785, 0.0489433, -9.36914, -0.569588, -52.54)
|
||||
transform = Transform3D(-0.801839, 0.200184, -0.563011, -0.593879, -0.371127, 0.713844, -0.0660485, 0.906748, 0.416469, -13.9061, -2.54283, -49.228)
|
||||
bone_name = "mixamorig_RightLeg"
|
||||
bone_idx = 61
|
||||
|
||||
@ -2858,7 +2858,7 @@ body_part = "Right Leg"
|
||||
shape = SubResource("CapsuleShape3D_h5mrs")
|
||||
|
||||
[node name="RightFootAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-0.99866, -0.0237603, 0.0459725, -5.66943e-07, 0.888369, 0.459129, -0.0517496, 0.458514, -0.887179, -9.12446, -2.63009, -10.4922)
|
||||
transform = Transform3D(-0.588698, -0.731611, -0.343773, -0.806695, 0.504491, 0.307786, -0.0517495, 0.458513, -0.88718, -5.4786, -18.1669, -11.0549)
|
||||
bone_name = "mixamorig_RightFoot"
|
||||
bone_idx = 62
|
||||
|
||||
@ -2873,7 +2873,7 @@ body_part = "Right Foot"
|
||||
shape = SubResource("BoxShape3D_1pj41")
|
||||
|
||||
[node name="RightArmAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(1.88417e-06, -1, -6.42613e-07, 1, 1.95263e-06, -3.02052e-07, 2.49216e-07, -5.60656e-07, 1, -18.7638, -6.1714, -143.565)
|
||||
transform = Transform3D(0.374872, -0.587376, 0.717259, 0.864165, 0.501541, -0.0409307, -0.335693, 0.635174, 0.695604, -10.8404, -16.1981, -138.841)
|
||||
bone_name = "mixamorig_RightArm"
|
||||
bone_idx = 32
|
||||
|
||||
@ -2888,7 +2888,7 @@ body_part = "Right Arm"
|
||||
shape = SubResource("CapsuleShape3D_56i6t")
|
||||
|
||||
[node name="RightForearmAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(1.83101e-06, -1, -2.52758e-07, 1, 1.89947e-06, -1.14072e-07, 6.12353e-08, -1.70802e-07, 1, -46.1685, -6.17135, -143.565)
|
||||
transform = Transform3D(0.525953, 0.457071, 0.717259, -0.623016, 0.781137, -0.0409307, -0.578986, -0.425336, 0.695604, -26.9373, -2.45355, -121.435)
|
||||
bone_name = "mixamorig_RightForeArm"
|
||||
bone_idx = 33
|
||||
|
||||
@ -2903,7 +2903,7 @@ body_part = "Right Forearm"
|
||||
shape = SubResource("CapsuleShape3D_1sjun")
|
||||
|
||||
[node name="RightPalmAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(2.06467e-06, -1, -7.26243e-07, 1, 2.13313e-06, -4.66939e-07, 4.14103e-07, -6.44286e-07, 1, -73.783, -6.17128, -143.565)
|
||||
transform = Transform3D(-0.101872, 0.0272958, 0.994423, -0.100369, 0.994241, -0.0375728, -0.989721, -0.103637, -0.0985454, -14.3155, 19.1172, -133.18)
|
||||
bone_name = "mixamorig_RightHand"
|
||||
bone_idx = 34
|
||||
|
||||
@ -2919,7 +2919,7 @@ transform = Transform3D(1, -4.54747e-13, -5.68434e-14, 0, 1, 2.94416e-14, 0, -8.
|
||||
shape = SubResource("SphereShape3D_eryh8")
|
||||
|
||||
[node name="LeftHipAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-0.999982, 0.00602684, 7.59335e-05, -4.90116e-07, -0.0126795, 0.99992, 0.00602731, 0.999901, 0.0126793, 9.12442, -0.0553195, -93.1355)
|
||||
transform = Transform3D(-0.982279, 0.127, 0.137838, 0.176971, 0.38628, 0.905245, 0.0617221, 0.913597, -0.40191, 6.6331, 6.44913, -89.6507)
|
||||
bone_name = "mixamorig_LeftUpLeg"
|
||||
bone_idx = 55
|
||||
|
||||
@ -2935,7 +2935,7 @@ transform = Transform3D(0.997222, -0.0744854, -0.000943551, 0.0744854, 0.997222,
|
||||
shape = SubResource("CapsuleShape3D_xyxrh")
|
||||
|
||||
[node name="LeftLegAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-0.999983, -0.00581159, -0.000285655, -9.44579e-07, -0.0489312, 0.998802, -0.0058186, 0.998785, 0.0489303, 9.36911, -0.570101, -52.5401)
|
||||
transform = Transform3D(-0.982093, 0.0367378, 0.18478, 0.184413, -0.013171, 0.982761, 0.0385382, 0.999238, 0.00616023, 11.7892, 22.1319, -52.5592)
|
||||
bone_name = "mixamorig_LeftLeg"
|
||||
bone_idx = 56
|
||||
|
||||
@ -2950,7 +2950,7 @@ body_part = "Left Leg"
|
||||
shape = SubResource("CapsuleShape3D_h5mrs")
|
||||
|
||||
[node name="LeftFootAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-0.99866, 0.0237585, -0.0459721, -7.93952e-07, 0.88837, 0.459128, 0.0517485, 0.458513, -0.88718, 9.12445, -2.63006, -10.4922)
|
||||
transform = Transform3D(-0.977188, 0.206477, 0.0497126, 0.205976, 0.864368, 0.45874, 0.0517493, 0.458515, -0.887179, 13.3358, 21.5774, -10.4923)
|
||||
bone_name = "mixamorig_LeftFoot"
|
||||
bone_idx = 57
|
||||
|
||||
@ -2965,7 +2965,7 @@ body_part = "Left Foot"
|
||||
shape = SubResource("BoxShape3D_1pj41")
|
||||
|
||||
[node name="LeftArmAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-3.4526e-06, 1, 1.33924e-06, -1, -3.3838e-06, 4.83343e-07, 5.16076e-07, -1.30385e-06, 1, 18.7578, -6.17146, -143.565)
|
||||
transform = Transform3D(0.539875, -0.155522, -0.827253, -0.33769, 0.860213, -0.382099, 0.771038, 0.485641, 0.411889, 15.532, 9.98411, -137.673)
|
||||
bone_name = "mixamorig_LeftArm"
|
||||
bone_idx = 8
|
||||
|
||||
@ -2980,7 +2980,7 @@ body_part = "Left Arm"
|
||||
shape = SubResource("CapsuleShape3D_56i6t")
|
||||
|
||||
[node name="LeftForearmAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-3.46797e-06, 1, 1.58986e-07, -1, -3.39917e-06, 6.16277e-07, 6.49006e-07, -1.23596e-07, 1, 46.1625, -6.17155, -143.566)
|
||||
transform = Transform3D(0.0873336, -0.555, -0.827253, 0.636753, 0.669735, -0.3821, 0.766106, -0.493386, 0.411889, 11.27, 33.558, -124.364)
|
||||
bone_name = "mixamorig_LeftForeArm"
|
||||
bone_idx = 9
|
||||
|
||||
@ -2995,7 +2995,7 @@ body_part = "Left Forearm"
|
||||
shape = SubResource("CapsuleShape3D_1sjun")
|
||||
|
||||
[node name="LeftPalmAttachment" type="BoneAttachment3D" parent="Model/Body/Skeleton3D"]
|
||||
transform = Transform3D(-3.35828e-06, 1, -1.37357e-06, -1, -3.28948e-06, 3.87377e-07, 4.201e-07, 1.40896e-06, 1, 73.777, -6.17164, -143.566)
|
||||
transform = Transform3D(-0.752812, -0.657604, -0.028832, -0.658199, 0.751584, 0.0435493, -0.00696856, 0.0517617, -0.998635, -4.05605, 52.0524, -137.988)
|
||||
bone_name = "mixamorig_LeftHand"
|
||||
bone_idx = 10
|
||||
|
||||
|
@ -759,6 +759,8 @@ process_mode = 2
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_a2lxx")
|
||||
ambient_light_source = 3
|
||||
ssr_enabled = true
|
||||
ssao_enabled = true
|
||||
glow_enabled = true
|
||||
fog_density = 0.0321
|
||||
fog_height = 15.06
|
||||
@ -958,7 +960,8 @@ shape = SubResource("ConcavePolygonShape3D_sf4fr")
|
||||
|
||||
[node name="MainLight" type="DirectionalLight3D" parent="Light"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.380296, 0.924865, 0, -0.924865, 0.380296, 0, 61.1231, 5.46385)
|
||||
light_energy = 2.111
|
||||
layers = 524289
|
||||
light_energy = 0.5
|
||||
light_bake_mode = 1
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
|
12
godot/scenes/player/gun_mount.gd
Normal file
12
godot/scenes/player/gun_mount.gd
Normal file
@ -0,0 +1,12 @@
|
||||
extends Node3D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
@export var follow_speed: float = 5.0
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
var target_position = global_transform.origin # Camera's world position
|
||||
global_transform.origin = lerp(global_transform.origin, target_position, follow_speed * delta)
|
5
godot/scenes/player/hud.gd
Normal file
5
godot/scenes/player/hud.gd
Normal file
@ -0,0 +1,5 @@
|
||||
extends Control
|
||||
class_name Hud
|
||||
|
||||
@onready var camera: Camera3D = $SubViewportContainer/SubViewport/Camera3D
|
||||
@onready var gun_mount: Node3D = $SubViewportContainer/SubViewport/Camera3D/GunMounta
|
@ -1,6 +1,8 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://btlkodvngm634"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://btlkodvngm634"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/player/hud.gd" id="1_1ffy2"]
|
||||
[ext_resource type="Texture2D" uid="uid://oopj5mj1vdp0" path="res://assets/crosshairs/crosshair_default.png" id="1_u13st"]
|
||||
[ext_resource type="Script" path="res://scenes/player/gun_mount.gd" id="3_qmcsd"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_3bk8i"]
|
||||
font_size = 70
|
||||
@ -82,6 +84,7 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_1ffy2")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
@ -141,6 +144,7 @@ environment = SubResource("Environment_i2xeo")
|
||||
fov = 50.0
|
||||
|
||||
[node name="GunMount" type="Node3D" parent="SubViewportContainer/SubViewport/Camera3D"]
|
||||
script = ExtResource("3_qmcsd")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="SubViewportContainer/SubViewport/Camera3D/GunMount"]
|
||||
libraries = {
|
||||
|
@ -21,7 +21,9 @@ var controlled_node: ServerNode = null
|
||||
@onready var shared_node: CharacterBody3D = $SharedNode
|
||||
@onready var camera_mount: Node3D = $SharedNode/CameraMount
|
||||
@onready var camera: Camera3D = $SharedNode/CameraMount/Camera3D
|
||||
var hud: Control
|
||||
var hud: Hud
|
||||
var hud_camera: Camera3D
|
||||
var gun_mount: Node3D
|
||||
const DEFAULT_WEAPON := "ak"
|
||||
var first_slot_weapon: WeaponController
|
||||
|
||||
@ -31,11 +33,15 @@ func _ready() -> void:
|
||||
shared_node.set_collision_mask_value(1, true)
|
||||
shared_node.set_collision_mask_value(2, true)
|
||||
camera.make_current()
|
||||
print(controlled_node.shared_node.global_position)
|
||||
var hud_scene: PackedScene = ResourceLoader.load("res://scenes/player/hud.tscn")
|
||||
hud = hud_scene.instantiate()
|
||||
camera.add_child(hud)
|
||||
hud_camera = hud.camera
|
||||
gun_mount = hud.gun_mount
|
||||
_load_weapon()
|
||||
for child in controlled_node.find_child("Model").find_children("*"):
|
||||
if child is MeshInstance3D:
|
||||
child.set_layer_mask_value(1, false)
|
||||
# Load the default weapon and set the current attack properties
|
||||
|
||||
func _load_weapon() -> void:
|
||||
@ -44,12 +50,14 @@ func _load_weapon() -> void:
|
||||
var scene: PackedScene = ResourceLoader.load(path)
|
||||
var node: WeaponController = scene.instantiate()
|
||||
first_slot_weapon = node
|
||||
for child in node.find_children("*"):
|
||||
if child is MeshInstance3D:
|
||||
child.set_layer_mask_value(1, false)
|
||||
#first_slot_weapon.position = Vector3(-1, -1, -1)
|
||||
hud.find_child("GunMount").add_child(first_slot_weapon)
|
||||
|
||||
|
||||
func initial_position_sync():
|
||||
print(controlled_node.shared_node.global_position)
|
||||
shared_node.global_position = controlled_node.shared_node.global_position
|
||||
shared_node.rotation = controlled_node.shared_node.rotation
|
||||
|
||||
@ -76,7 +84,7 @@ func jump():
|
||||
jumping = true
|
||||
controlled_node.jump.rpc_id(1)
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
func _physics_process(delta: float) -> void:
|
||||
if multiplayer.get_unique_id() == get_multiplayer_authority():
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||
|
||||
@ -100,6 +108,8 @@ func _physics_process(delta: float) -> void:
|
||||
else:
|
||||
shared_node.velocity.x = move_toward(shared_node.velocity.x, 0, consts.DEFAULT_CHARACTER_SPEED)
|
||||
shared_node.velocity.z = move_toward(shared_node.velocity.z, 0, consts.DEFAULT_CHARACTER_SPEED)
|
||||
hud_camera.global_position = global_position
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
shared_node.move_and_slide()
|
||||
|
@ -31,7 +31,9 @@ func _load_weapon() -> void:
|
||||
var scene: PackedScene = ResourceLoader.load(path)
|
||||
var node: WeaponController = scene.instantiate()
|
||||
first_slot_weapon = node
|
||||
first_slot_weapon.make_invisible()
|
||||
first_slot_weapon.set_map_controller(map_controller)
|
||||
add_child(first_slot_weapon)
|
||||
|
||||
func bind_player_node() -> void:
|
||||
if multiplayer.get_unique_id() == owner_id:
|
||||
@ -44,22 +46,34 @@ func _physics_process(delta: float) -> void:
|
||||
shared_node.velocity.y = consts.DEFAULT_JUMP_VELOCITY
|
||||
#if shooting:
|
||||
jumping = false
|
||||
|
||||
var direction := (shared_node.transform.basis * Vector3(input_direction.x, 0, input_direction.y)).normalized()
|
||||
if shared_node.is_on_floor():
|
||||
if direction:
|
||||
#first_view_legs_anim.play("Run Forward")
|
||||
shared_node.velocity.x = direction.x * consts.DEFAULT_CHARACTER_SPEED
|
||||
shared_node.velocity.z = direction.z * consts.DEFAULT_CHARACTER_SPEED
|
||||
else:
|
||||
shared_node.velocity.x = move_toward(shared_node.velocity.x, 0, consts.DEFAULT_CHARACTER_SPEED)
|
||||
shared_node.velocity.z = move_toward(shared_node.velocity.z, 0, consts.DEFAULT_CHARACTER_SPEED)
|
||||
if multiplayer.is_server():
|
||||
var direction := (shared_node.transform.basis * Vector3(input_direction.x, 0, input_direction.y)).normalized()
|
||||
if shared_node.is_on_floor():
|
||||
if direction:
|
||||
$SharedNode/Character/Model/AnimationPlayer.play("riffle_run")
|
||||
#first_view_legs_anim.play("Run Forward")
|
||||
shared_node.velocity.x = direction.x * consts.DEFAULT_CHARACTER_SPEED
|
||||
shared_node.velocity.z = direction.z * consts.DEFAULT_CHARACTER_SPEED
|
||||
else:
|
||||
$SharedNode/Character/Model/AnimationPlayer.play("riffle_idle")
|
||||
shared_node.velocity.x = move_toward(shared_node.velocity.x, 0, consts.DEFAULT_CHARACTER_SPEED)
|
||||
shared_node.velocity.z = move_toward(shared_node.velocity.z, 0, consts.DEFAULT_CHARACTER_SPEED)
|
||||
sync_velocity.rpc(shared_node.velocity.x, shared_node.velocity.y, shared_node.velocity.z)
|
||||
else:
|
||||
print(str(name) + str(shared_node.velocity))
|
||||
|
||||
shared_node.move_and_slide()
|
||||
|
||||
@rpc("any_peer", "call_local", "unreliable")
|
||||
func jump():
|
||||
jumping = true
|
||||
|
||||
@rpc("any_peer", "call_local", "unreliable")
|
||||
func sync_velocity(x: float, y: float, z: float) -> void:
|
||||
if not multiplayer.is_server():
|
||||
shared_node.velocity = Vector3(x, y ,z)
|
||||
|
||||
|
||||
@rpc("any_peer", "call_local", "unreliable")
|
||||
func set_input_direction(new_input_direction: Vector2):
|
||||
input_direction = new_input_direction
|
||||
@ -74,10 +88,22 @@ func set_rotation_y(y: float):
|
||||
|
||||
func _on_reconciliation_timer_timeout() -> void:
|
||||
if multiplayer.is_server():
|
||||
player_node.verify_position.rpc_id(owner_id)
|
||||
player_node.verify_rotation.rpc_id(owner_id)
|
||||
_veryfy_position_and_rotation.rpc_id(owner_id)
|
||||
$ReconciliationTimer.start()
|
||||
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func _veryfy_position_and_rotation() -> void:
|
||||
player_node.verify_position()
|
||||
player_node.verify_rotation()
|
||||
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func _adjust_position(x: float, y: float, z: float) -> void:
|
||||
player_node.adjust_position(x, y, z)
|
||||
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func _adjust_rotation(x: float, y: float, z: float) -> void:
|
||||
player_node.adjust_rotation(x, y, z)
|
||||
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func send_position(x: float, y: float, z: float):
|
||||
if multiplayer.is_server():
|
||||
@ -90,22 +116,23 @@ func send_position(x: float, y: float, z: float):
|
||||
elif is_vector_a_lower_than_b(difference, Vector3(0.4, 0.4, 0.4)):
|
||||
var new_position: Vector3 = desired_position.lerp(real_position, 0.5)
|
||||
push_warning("player position is not valid, lerping")
|
||||
player_node.adjust_position.rpc_id(owner_id, new_position.x, new_position.y, new_position.z)
|
||||
_adjust_position.rpc_id(owner_id, new_position.x, new_position.y, new_position.z)
|
||||
else:
|
||||
push_warning("player position is not valid, adjusting")
|
||||
player_node.adjust_position.rpc_id(owner_id, real_position.x, real_position.y, real_position.z)
|
||||
_adjust_position.rpc_id(owner_id, real_position.x, real_position.y, real_position.z)
|
||||
|
||||
@rpc("any_peer", "call_local")
|
||||
func send_rotation(x: float, y: float, z: float):
|
||||
var desired_rotation: Vector3 = Vector3(x, y, z)
|
||||
if multiplayer.is_server():
|
||||
var real_rotation: Vector3 = shared_node.rotation
|
||||
var difference: Vector3 = desired_rotation - real_rotation
|
||||
if is_vector_a_lower_than_b(difference, Vector3(0.3, 0.3, 0.3)):
|
||||
shared_node.rotation = desired_rotation
|
||||
else:
|
||||
var new_rotation: Vector3 = desired_rotation.lerp(real_rotation, 0.5)
|
||||
player_node.adjust_rotation.rpc_id(owner_id, new_rotation.x, new_rotation.y, new_rotation.z)
|
||||
var desired_rotation: Vector3 = Vector3(x, y, z)
|
||||
if multiplayer.is_server():
|
||||
var real_rotation: Vector3 = shared_node.rotation
|
||||
var difference: Vector3 = desired_rotation - real_rotation
|
||||
if is_vector_a_lower_than_b(difference, Vector3(0.3, 0.3, 0.3)):
|
||||
shared_node.rotation = desired_rotation
|
||||
else:
|
||||
var new_rotation: Vector3 = desired_rotation.lerp(real_rotation, 0.5)
|
||||
_adjust_rotation.rpc_id(owner_id, new_rotation.x, new_rotation.y, new_rotation.z)
|
||||
|
||||
@rpc("any_peer", "call_local", "unreliable_ordered")
|
||||
func shoot():
|
||||
|
@ -1,15 +1,16 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://clq0b7tbincut"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://clq0b7tbincut"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/player/server_node.gd" id="1_bau14"]
|
||||
[ext_resource type="PackedScene" uid="uid://cirun2v34nfpg" path="res://scenes/player/shared_node.tscn" id="1_ybp5y"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddwrs0so7swxn" path="res://scenes/characters/y-bot/character.tscn" id="3_eykxo"]
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_2dhi2"]
|
||||
properties/0/path = NodePath("SharedNode:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 1
|
||||
properties/0/replication_mode = 0
|
||||
properties/1/path = NodePath("SharedNode:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 1
|
||||
properties/1/replication_mode = 0
|
||||
properties/2/path = NodePath(".:owner_id")
|
||||
properties/2/spawn = true
|
||||
properties/2/replication_mode = 1
|
||||
@ -19,6 +20,9 @@ script = ExtResource("1_bau14")
|
||||
|
||||
[node name="SharedNode" parent="." instance=ExtResource("1_ybp5y")]
|
||||
|
||||
[node name="Character" parent="SharedNode" instance=ExtResource("3_eykxo")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_2dhi2")
|
||||
|
||||
|
@ -15,6 +15,7 @@ shape = SubResource("CapsuleShape3D_r38x6")
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6036, -0.127098)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="CameraMount"]
|
||||
cull_mask = 524285
|
||||
|
||||
[node name="BulletStartingPoint" type="Node3D" parent="CameraMount"]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
extends Resource
|
||||
extends Node
|
||||
|
||||
const DEFAULT_JUMP_VELOCITY: float = 5
|
||||
const DEFAULT_CHARACTER_SPEED: float = 7.0
|
||||
|
@ -19,33 +19,37 @@ var can_shoot: bool = true
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
cooldown_timer.wait_time = cooldown
|
||||
print("test")
|
||||
|
||||
|
||||
@onready var bullet_trace_distance: Node3D = $BulletTraceDistance
|
||||
@onready var bullet_trail_end: Node3D = $BulletTrailEnd
|
||||
@onready var gun_animation = $ShotAnimation
|
||||
func shoot() -> Error:
|
||||
var bullet_start_node: Node3D = bullet_trace_distance.find_child("Start")
|
||||
var bullet_end_node: Node3D = bullet_trace_distance.find_child("End")
|
||||
gun_animation.play("shot")
|
||||
if bullet_start_node and bullet_end_node:
|
||||
var path := "res://scenes/weapon/misc/bullet_trail_generic.tscn"
|
||||
if not ResourceLoader.exists(path):
|
||||
return ERR_DOES_NOT_EXIST
|
||||
var scene: PackedScene = ResourceLoader.load(path)
|
||||
if not scene.can_instantiate():
|
||||
return ERR_CANT_OPEN
|
||||
if can_shoot:
|
||||
can_shoot = false
|
||||
var bullet_start_node: Node3D = bullet_trace_distance.find_child("Start")
|
||||
var bullet_end_node: Node3D = bullet_trace_distance.find_child("End")
|
||||
gun_animation.play("shot")
|
||||
cooldown_timer.start()
|
||||
|
||||
var node: MeshInstance3D = scene.instantiate()
|
||||
node.init(bullet_start_node.position, bullet_end_node.position)
|
||||
#var root := get_tree().get_root()
|
||||
bullet_start_node.add_child(node)
|
||||
return OK
|
||||
else:
|
||||
push_warning("Couldn't generate a bullet trace, no distance node found")
|
||||
return ERR_BUG
|
||||
can_shoot = false
|
||||
cooldown_timer.start()
|
||||
if bullet_start_node and bullet_end_node:
|
||||
var path := "res://scenes/weapon/misc/bullet_trail_generic.tscn"
|
||||
if not ResourceLoader.exists(path):
|
||||
return ERR_DOES_NOT_EXIST
|
||||
var scene: PackedScene = ResourceLoader.load(path)
|
||||
if not scene.can_instantiate():
|
||||
return ERR_CANT_OPEN
|
||||
|
||||
var node: MeshInstance3D = scene.instantiate()
|
||||
node.init(bullet_start_node.position, bullet_end_node.position)
|
||||
#var root := get_tree().get_root()
|
||||
bullet_start_node.add_child(node)
|
||||
return OK
|
||||
else:
|
||||
push_warning("Couldn't generate a bullet trace, no distance node found")
|
||||
return ERR_BUG
|
||||
return OK
|
||||
|
||||
# -- TODO: It should not be hardcoded
|
||||
|
||||
@ -53,11 +57,16 @@ func set_map_controller(map_node: MapController):
|
||||
map_controller = map_node
|
||||
|
||||
func attack(bullet_starting_point: Node3D):
|
||||
map_controller.spawn_bullet(bullet_starting_point, bullet_speed, damage)
|
||||
can_shoot = false
|
||||
#cooldown_timer.start()
|
||||
|
||||
if can_shoot:
|
||||
can_shoot = false
|
||||
map_controller.spawn_bullet(bullet_starting_point, bullet_speed, damage)
|
||||
cooldown_timer.start()
|
||||
|
||||
func make_invisible() -> void:
|
||||
for child in find_children("*"):
|
||||
if child is MeshInstance3D:
|
||||
child.set_layer_mask_value(1, false)
|
||||
child.set_layer_mask_value(20, false)
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=58 format=4 uid="uid://wu6qyd0aqeib"]
|
||||
[gd_scene load_steps=59 format=4 uid="uid://wu6qyd0aqeib"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/weapon/generic_weapon_controller.gd" id="1_h1xyo"]
|
||||
[ext_resource type="PackedScene" uid="uid://bjyltbtx45cqs" path="res://scenes/weapon/misc/bullet_trace_distance.tscn" id="3_5ff4y"]
|
||||
[ext_resource type="PackedScene" uid="uid://dab7jttp7ywfh" path="res://scenes/weapon/guns/ak/gun.tscn" id="3_q7t3c"]
|
||||
[ext_resource type="AudioStream" uid="uid://prh2ip5vkpyu" path="res://assets/audio/weapon/generic_gun_sound.mp3" id="4_v0f30"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tg27p"]
|
||||
|
||||
@ -640,7 +641,7 @@ _data = {
|
||||
[node name="WithHands" type="Node3D"]
|
||||
script = ExtResource("1_h1xyo")
|
||||
damage = 50
|
||||
cooldown = 1.0
|
||||
cooldown = 0.15
|
||||
mag_capacity = 30
|
||||
|
||||
[node name="HandsMount" type="Node3D" parent="."]
|
||||
@ -872,4 +873,7 @@ process_callback = 0
|
||||
wait_time = 10.0
|
||||
one_shot = true
|
||||
|
||||
[node name="Sound" type="AudioStreamPlayer3D" parent="."]
|
||||
stream = ExtResource("4_v0f30")
|
||||
|
||||
[connection signal="timeout" from="CooldownTimer" to="." method="_on_cooldown_timer_timeout"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user