Maybe make human leg rotation better
This commit is contained in:
parent
767335f7e4
commit
544c87a115
1062
3D Input/Fertige GLBs/Kopf_Mensch.glb.import
Normal file
1062
3D Input/Fertige GLBs/Kopf_Mensch.glb.import
Normal file
File diff suppressed because it is too large
Load Diff
BIN
3D Input/Fertige GLBs/Kopfmaterial.material
Normal file
BIN
3D Input/Fertige GLBs/Kopfmaterial.material
Normal file
Binary file not shown.
34
3D Input/Kopftextur.png.import
Normal file
34
3D Input/Kopftextur.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Kopftextur.png-2e88b0ac35e3868e1464eb8d2273e145.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://3D Input/Kopftextur.png"
|
||||||
|
dest_files=[ "res://.import/Kopftextur.png-2e88b0ac35e3868e1464eb8d2273e145.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
@ -15,7 +15,7 @@ func action():
|
|||||||
|
|
||||||
func push(body):
|
func push(body):
|
||||||
# We multiply by 0.1 because we only want it to spin slightly, it should mostly go up
|
# We multiply by 0.1 because we only want it to spin slightly, it should mostly go up
|
||||||
var offset = transform.basis.xform(Vector3.ZERO)
|
var offset = transform.basis.xform(touch_area.global_transform.origin - base.global_transform.origin) * 0.1
|
||||||
var direction = (base.transform.basis.y - base.transform.basis.z).normalized() * 5.0
|
var direction = (base.transform.basis.y - base.transform.basis.z).normalized() * 5.0
|
||||||
|
|
||||||
base.apply_impulse(offset, direction)
|
base.apply_impulse(offset, direction)
|
||||||
|
@ -31,9 +31,6 @@ shape = SubResource( 3 )
|
|||||||
[node name="Mesh" parent="." index="2" instance=ExtResource( 3 )]
|
[node name="Mesh" parent="." index="2" instance=ExtResource( 3 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.42109e-14, -2.28512, -0.0490953 )
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.42109e-14, -2.28512, -0.0490953 )
|
||||||
|
|
||||||
[node name="Skeleton" parent="Mesh/Armature" index="0"]
|
|
||||||
bones/2/bound_children = [ NodePath("BoneAttachment") ]
|
|
||||||
|
|
||||||
[node name="Cube" parent="Mesh/Armature/Skeleton" index="0"]
|
[node name="Cube" parent="Mesh/Armature/Skeleton" index="0"]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, -3.72529e-09, 0, 3.72529e-09, 1, 0, 0, 0 )
|
transform = Transform( 1, 0, 0, 0, 1, -3.72529e-09, 0, 3.72529e-09, 1, 0, 0, 0 )
|
||||||
material/0 = SubResource( 1 )
|
material/0 = SubResource( 1 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user