Fix the aiming and bullet creation
This commit is contained in:
@ -7,6 +7,7 @@ class_name PlayerPlaceholder
|
||||
@onready var client_node: CharacterBody3D = $PlayerControlledNode
|
||||
@onready var server_node: PlayerServerNode = $ServerControlledNode
|
||||
@export var character_speed: int = 5
|
||||
@onready var bullet_starting_poing: Node3D = $ServerControlledNode/BulletStartingPoint
|
||||
|
||||
|
||||
|
||||
@ -109,7 +110,5 @@ func adjust_rotation(x: float, y: float, z: float):
|
||||
push_warning("player rotation is not valid, adjusting")
|
||||
client_node.rotation = desired_rotation
|
||||
|
||||
|
||||
|
||||
func is_vector_a_lower_than_b(vec_a: Vector3, vec_b: Vector3) -> bool:
|
||||
return vec_a.x < vec_b.x and vec_a.y < vec_b.y and vec_a.z < vec_b.z
|
||||
|
Reference in New Issue
Block a user