initial commit
This commit is contained in:
commit
e446938ba7
74 changed files with 3212 additions and 0 deletions
14
TrajectoryDisplay.gd
Normal file
14
TrajectoryDisplay.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends Line2D
|
||||
|
||||
func _ready():
|
||||
$RayCast2D.target_position = $"..".linear_velocity * 5000
|
||||
$RayCast2D.force_raycast_update()
|
||||
|
||||
func _physics_process(delta):
|
||||
#global_rotation = $"..".linear_velocity.angle()
|
||||
$RayCast2D.target_position = $"..".linear_velocity * 5000
|
||||
points[1] = $"..".linear_velocity * 5000
|
||||
if $RayCast2D.get_collider() != null and $RayCast2D.get_collider().name == "Player":
|
||||
visible = true
|
||||
else:
|
||||
visible = false
|
Loading…
Add table
Add a link
Reference in a new issue