Created first version of SimpleSocket to test socket with SimpleKey (Any pickupable with socket)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user