person can take and interact with item
This commit is contained in:
@@ -19,7 +19,9 @@ func _input(event: InputEvent) -> void:
|
||||
|
||||
func _on_object_placed(build_postion):
|
||||
var newObject = BuildManager.get_preview_object().instantiate()
|
||||
newObject.static_body.input_ray_pickable = true
|
||||
newObject.global_position = build_postion
|
||||
BuildManager.add_object_to_array(newObject)
|
||||
newObject.ActionNode.create()
|
||||
#newObject.restore_default_shaders()
|
||||
self.add_child(newObject)
|
||||
|
||||
Reference in New Issue
Block a user