Download

[Spline RunTime] Can't add spline point on realtime

Hello everyone ! I’m a french video game student and i have some issues with how to set up start and end point of a spline by adding more points in realtime. I hope you will be able to help me understand the logic behind my problems.

In a 3D platformer you control a character who can spawn clouds and use them. I would like to make a rain cloud who can draw water on the map by using a spline in realtime.
When you use the ability, the third person character is unposses. You now posses the cloud. You can move the cloud, the cloud is a pawn.
2016-05-08_17h40_10.png
A line trace check the impact point to spawn a spline actor while the rain cloud is active (a spline component and a static mesh or spline mesh)
After the spline actor is spawned i want a new spline point be added every X tick. In order to create a water path.
2016-05-08_18h06_11.png
It’s the same spline as in this excellent tutorial video https://www.youtube.com/watch?v=Y9yPg8oDS9E&list=PLHadbgEqCTxDgj-RwPQGkaUypb05NJYN6&index=4

[PROBLEM 1 ]
the spline points that i add dont seems to be add or recognize by the start point of the primary spline actor.

[PROBLEM 2 ]
I miss some logic concerning where the add spline point node must be placed.
At best the spline actor is spawned multiple times with no links between them.

Spawned spline actor Event graph Blueprint
c3c65dee8da5f5b95f07f1d47e5b468d252a96be.png

Spawned spline actor Construction Script
a02ac6774819c709daca9f6d4413be4e4a08a6e6.png

Rain Cloud Pawn Event Graph
770ff1491075548327b93482b772800a2cb491eb.png
31fd70c7b85415bcbf121f2700d223fffdc35c0b.png

Every components are set as movable.
The spline works perfectly in editor. (rotation, tangent calcul, spacing, new points adaptation)
But not in realtime … T_T

I’ll be happy to discuss about possibilities of adding new spline points of a spline actor in realtime.
Thank you so much !

i have the exact same problem, cant add points at runtime,
did you solved it ?

Got it working, i was placing the same point over and over so the idea is to get the latest spline point and get its location+(direction*someScale) to generate the next point (like interpolation) then you will want to also add the tangent of the previous point to the “in tangent” of the next point