Add Sway and Bob
This commit is contained in:
@@ -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)
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user