adding function for normal vector and smoothening movement on planets