mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2025-01-26 14:29:19 +01:00
Handle and remove warnings in GSAI* classes
This commit is contained in:
parent
77f90b0c74
commit
6d2016c9e9
@ -37,7 +37,7 @@ func _ready() -> void:
|
|||||||
child.set_proximity_agents(avoider_agents)
|
child.set_proximity_agents(avoider_agents)
|
||||||
|
|
||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(_delta: float) -> void:
|
||||||
for child in get_children():
|
for child in get_children():
|
||||||
child.global_position = child.global_position.posmodv(boundaries)
|
child.global_position = child.global_position.posmodv(boundaries)
|
||||||
|
|
||||||
|
@ -36,5 +36,5 @@ var _applied_steering := false
|
|||||||
|
|
||||||
# Moves the agent's body by target `acceleration`.
|
# Moves the agent's body by target `acceleration`.
|
||||||
# tags: virtual
|
# tags: virtual
|
||||||
func _apply_steering(acceleration: GSAITargetAcceleration, delta: float) -> void:
|
func _apply_steering(_acceleration: GSAITargetAcceleration, _delta: float) -> void:
|
||||||
pass
|
pass
|
||||||
|
@ -16,5 +16,5 @@ func _init(agent: GSAISteeringAgent, proximity: GSAIProximity).(agent) -> void:
|
|||||||
# Internal callback for the behavior to define whether or not a member is
|
# Internal callback for the behavior to define whether or not a member is
|
||||||
# relevant
|
# relevant
|
||||||
# tags: virtual
|
# tags: virtual
|
||||||
func _report_neighbor(neighbor: GSAISteeringAgent) -> bool:
|
func _report_neighbor(_neighbor: GSAISteeringAgent) -> bool:
|
||||||
return false
|
return false
|
||||||
|
@ -14,8 +14,8 @@ var is_enabled := true
|
|||||||
var agent: GSAISteeringAgent
|
var agent: GSAISteeringAgent
|
||||||
|
|
||||||
|
|
||||||
func _init(agent: GSAISteeringAgent) -> void:
|
func _init(_agent: GSAISteeringAgent) -> void:
|
||||||
self.agent = agent
|
self.agent = _agent
|
||||||
|
|
||||||
|
|
||||||
# Sets the `acceleration` with the behavior's desired amount of acceleration.
|
# Sets the `acceleration` with the behavior's desired amount of acceleration.
|
||||||
|
@ -19,5 +19,5 @@ func _init(agent: GSAISteeringAgent, agents: Array) -> void:
|
|||||||
# `_find_neighbors` calls `callback` for each agent in the `agents` array and
|
# `_find_neighbors` calls `callback` for each agent in the `agents` array and
|
||||||
# adds one to the count if its `callback` returns true.
|
# adds one to the count if its `callback` returns true.
|
||||||
# tags: virtual
|
# tags: virtual
|
||||||
func _find_neighbors(callback: FuncRef) -> int:
|
func _find_neighbors(_callback: FuncRef) -> int:
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user