initial work on waterman's pole
This commit is contained in:
parent
ffc1935570
commit
1a57d92326
5 changed files with 162 additions and 6 deletions
17
objects/waterman_pole.gd
Normal file
17
objects/waterman_pole.gd
Normal file
|
@ -0,0 +1,17 @@
|
|||
class_name WatermanPole
|
||||
extends Node3D
|
||||
|
||||
|
||||
@export var rise_speed: float
|
||||
@export_range(-1,1,0.5,"or_less","or_greater","radians_as_degrees")
|
||||
var spin_speed: float
|
||||
@export var offset: float
|
||||
@export var release_boost: float
|
||||
|
||||
@export_group("Node References")
|
||||
@export var top: Node3D
|
||||
|
||||
|
||||
func _on_player_detector_body_entered(body: Node3D) -> void:
|
||||
if body is Player:
|
||||
body.attach_to_pole(self)
|
Loading…
Add table
Add a link
Reference in a new issue