tweaks to projectile script
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
extends RigidBody3D
|
||||
class_name Projectile
|
||||
|
||||
@export var collision_raycast_3d : RayCast3D
|
||||
|
||||
var player_position
|
||||
var player_velocity
|
||||
var bullet_active = true
|
||||
@@ -19,3 +21,9 @@ func _process(delta: float) -> void:
|
||||
|
||||
if distance_from_player.length() > 2:
|
||||
visible = true
|
||||
|
||||
func collision_ray():
|
||||
if collision_raycast_3d != null:
|
||||
#do looking towards velocity
|
||||
#do lenghth of distance traveled next frame
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user