Created first version of SimpleSocket to test socket with SimpleKey (Any pickupable with socket)

This commit is contained in:
2026-09-26 22:19:20 +03:00
parent 6af29d4611
commit 2cc2d59be9
5 changed files with 61 additions and 7 deletions
+5
View File
@@ -25,6 +25,8 @@ var holdDistance: float
var rotationOffset: Basis
var localCenterOffset: Vector3
var currentSocket: Socket = null
func _ready():
if body:
body.mass = bodyMass
@@ -115,6 +117,9 @@ func endInteract(player):
rotating = false
player.setMouseFactors(1.0, 1.0)
playerRef = null
if currentSocket != null and currentSocket.isInRange(self):
currentSocket.snapObject(self)
func throw():
if !dragging: