Download

Trace along spline or checking if a circle intersects something

Hi everyone. I need to calculate if a car can make a 360 degrees turn. I have this idea: build 2 circles, to the left and to the right of the car, along which the car would drive if it made a turn to the left or right. So black rect. is a car, and red circles are this turn - predictions.

](filedata/fetch?id=1828979&d=1604434583)
But how to check if there are any obstacles on this circles path? Thanks. Sorry for my english

Maybe have two flat-ish cylinders at the sides and check for collision?

I am afraid this is not that I need. I need to check collision only on this red line, not the whole circle. But I think that I found the answer myself. Just spawning box traces along the circle and rotating them in order to them facing circle direction. Nevertheless, thank you for the answer!
P.S. sorry for my English again))

Hi man,
you can use a boxtrace to check a part of the circle at time, working like it was a polygon.
You define the locations in the “circle” and use the boxtrace from point 0 to point1, from point 1 to point 2.

[quote=“Est_engine, post:4, topic:153143”]

Hi man,
you can use a boxtrace to check a part of the circle at time, working like it was a polygon.
You define the locations in the “circle” and use the boxtrace from point 0 to point1, from point 1 to point 2.WTF Is? Box Trace By Channel in Unreal Engine 4 ( UE4 ) - YouTube

Hello! Yes, this method worked for me, thanks!