srry dafe I'm a bit retarded in this things(XD) but can you post an image or something that can let me understand?because on the 3rd line I have this:
local mag = math.sqrt(vector.x*vector.x + vector.y*vector.y + vector.z*vector.z)
the only 3rd line where I see numbers is this:
set_joint_state(pid, 11, 1)
the 3rd line of set_join_state,but if I change something,nothing happens