22-12-2021, 12:00 PM
Hey there,
I'd like to be able to have the edge of a rope move as the user drags the mouse cursor.
I tried doing this with a blueprint but I had two issues:
1. The blueprint got permanently changed.
2. The effect wasn't visible in the game in real-time, instead it was just visible in the editor, and the next time I ran the game.
Am I missing something? Is there a better way?
Here's the relevant code segment:
Many thanks.
I'd like to be able to have the edge of a rope move as the user drags the mouse cursor.
I tried doing this with a blueprint but I had two issues:
1. The blueprint got permanently changed.
2. The effect wasn't visible in the game in real-time, instead it was just visible in the editor, and the next time I ran the game.
Am I missing something? Is there a better way?
Here's the relevant code segment:
Code:
ObiWingedPoint point = rope.ropeBlueprint.path.points[0];
point.position = worldMousePosition;
rope.ropeBlueprint.path.points[0] = point;
Many thanks.