I am trying to get my planes linear velocity but i'm getting the error "Invalid get index 'linear_velocity' (on base: 'Spatial (Plane.gd)'.
my plane's variable is:
onready var target: Spatial = getnode(targetpath)
(target path goes to the planes spatial node)
And here's the line that breaks:
var targetvelocity = target.linearvelocity
I'm pretty new to gdscript so help is much appriciated and it might just be something very simple that im missing :)