Hello there!
Pretty new to Unreal (I am a Junior QA at a Unreal using Game Development Studio) and wanted to broaden my horizon.
As part of a little project I want to try to make I am creating a Spline Component Based on a Characters Location in the World at Runtime. Basically causing it to trail the Player Character at Ground level everywhere.
Now I would like to figure out how to check If this spline intesects itself/crosses itself in the process of this creation.
The goal here would be to figure out where IF the crossing happened > Where it happened > Create a Loop > remove all Spline points not part of that loop.
Hello again! I have done some experimentation and tried out half a dozen Spline nodes to figure out how to do it!
I am not sure if this is good for performance but I am now every few miliseconds while the spline is alive checking the distance between the Player (Spline Checker in this image which is a Collision Capsule slightly ahead of the player to aid with detection and make it “fuzzy”) and the closest point on the Spline that the player is drawing. Due to the Spline Checker being in front it should always be further away from the Spline behind it and not give false positives!