First Commit

Base multiplayer example with obster
This commit is contained in:
Twirpytherobot
2025-11-12 18:41:45 +00:00
parent 2616f1f052
commit 1d63abc581
157 changed files with 73264 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
extends Node3D
class_name SpringArmCharacter
const MOUSE_SENSIBILITY: float = 0.005
@export_category("Objects")
@export var _spring_arm: SpringArm3D = null
func _unhandled_input(_event) -> void:
if (_event is InputEventMouseMotion) and is_multiplayer_authority():
rotate_y(-_event.relative.x * MOUSE_SENSIBILITY)
_spring_arm.rotate_x(-_event.relative.y * MOUSE_SENSIBILITY)
_spring_arm.rotation.x = clamp(_spring_arm.rotation.x, -PI/4, PI/24)