Maybe make human leg rotation better
This commit is contained in:
1 parent
767335f7e4
commit
544c87a115
5 files changed
+1097
-4
No files matched your search
@@ -15,7 +15,7 @@ func action():
|
||||
|
||||
func push(body):
|
||||
# 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
|
||||
|
||||
base.apply_impulse(offset, direction)
|
||||
|
||||
@@ -31,9 +31,6 @@ shape = SubResource( 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 )
|
||||
|
||||
[node name="Skeleton" parent="Mesh/Armature" index="0"]
|
||||
bones/2/bound_children = [ NodePath("BoneAttachment") ]
|
||||
|
||||
[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 )
|
||||
material/0 = SubResource( 1 )
|
||||
|
||||
Reference in new issue
Block a user