hi friends,currently am working with flight.i have a script attached below which makes the object to travel to the points given and keeps incrementing to the next way point if target reached and loops back.what i need is that the object(flight)must turn in a curved way to the next target point.code snippet is appreciated.thanks in advace
at each point when you arrive
transform.lookat(nextpoint)
if you’d like to smoothly rotate
transform.rotatetowards(current,target)
or basically
transform.rotatetowards(transform.rotation.eulerangles, next_way_point.transform.position);