Epidal as the Answer.
I'm trying to draw a line with ImmediateGeometry from the origin of the im node(or the player node or raycast node, there all in the same position) to the collision point of the raycast, the line draws fine, but when the player is rotated the line seems to rotate twice as much as the player does, so for a 360 rotation of the player the line will have rotated 720
just ignore that small line coming out from the ball thats the balls raycast.
heres the code im using to draw the line
var raycast = self
var im = $ImmediateGeometry
var start = im.transform.origin
normal = get_collision_normal()
collision_point = get_collision_point()
the getpreviewpath func is called from the player.gd in the player rotation func
var rotate_strength = 0.1
var left = Input.is_action_pressed("player_rot_left")
var right = Input.is_action_pressed("player_rot_right")
self.rotation_degrees.y += rotate_strength
Global.Ball.rotation_degrees.y += rotate_strength
self.rotation_degrees.y -= rotate_strength
Global.Ball.rotation_degrees.y -= rotate_strength
im pretty sure PI radians plays a part here, but i have no idea...
if anyone could point me in the right direction, i would be very much appreciative.