You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running functions in a child defined in a variable, it should autofill functions specific to that child type (e.g. move_and_slide for a character body)
Steps to reproduce
create a node
add a kinematic body with a collider child
to the first node, attach an empty script and add: @onready var child := $CharacterBody3D #effect child by gravity func _physics_process(delta): child.velocity.y -= 9.8 * delta child.move_and_slide()
when typing child.velocity.y -= 9.8 * delta and child.move_and_slide(), it does not autofill the appropriate functions "velocity" and "move_and_slide()" nor understand that velocity is a vector when they are part of a child variable
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
Godot version
v4.0.alpha14.official [106b680]
System information
Windows 10
Issue description
when running functions in a child defined in a variable, it should autofill functions specific to that child type (e.g. move_and_slide for a character body)
Steps to reproduce
@onready var child := $CharacterBody3D
#effect child by gravity
func _physics_process(delta):
child.velocity.y -= 9.8 * delta
child.move_and_slide()
when typing
child.velocity.y -= 9.8 * delta
andchild.move_and_slide()
, it does not autofill the appropriate functions "velocity" and "move_and_slide()" nor understand that velocity is a vector when they are part of a child variableMinimal reproduction project
No response
The text was updated successfully, but these errors were encountered: