Add Sway and Bob

This commit is contained in:
2022-12-06 00:48:50 +01:00
parent 04a4ebc899
commit 825d86f271
26 changed files with 1513 additions and 116 deletions

View File

@@ -1,16 +0,0 @@
extends Node3D
var pos = Vector2.ZERO
var y = 0
func _ready():
pos.x = 0.3 # Replace with function body.
pos.y = -1
y = -0.5
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if(transform.basis.x != 0.3 || transform.basis.z != -1):
transform.basis.y = y + sin(1 * delta)

View File

@@ -3,7 +3,7 @@
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://cnk2fusin4ewy"
uid="uid://beiad4ywiojba"
path="res://.godot/imported/Revolver.gltf-1c0c2c3864f727f53cf3435925795736.scn"
[deps]