Basic 3d Disc

This commit is contained in:
2023-06-04 19:28:16 -04:00
parent d881d14010
commit 86c34c9264
11 changed files with 212 additions and 14 deletions

17
3d_test.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Node3D
const Disc = preload("res://disc.tscn")
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func _input(event):
if event.is_action_pressed("player_jump"):
var disc = Disc.instantiate()
disc.position = $Player/Torso/RightArm/Hand.global_position
add_child(disc)
disc.apply_impulse(Vector3(0,10,0))
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass