added set direction & position for entity