I have randomly scattered points. How to do snap to points movement with a gamepad?

Are the point just vectors or objects of some sort? Is this 2d?

Points are objects in 3d space. but I plan to use the 2d camera view. I’m not really familiar with 2D Paper yet. My goal is to scatter points randomly (this is instancing as I understand it) and move around them. And to move, create a vector, which is set by joystick and determine the nearest point.

I tried to implement something like this in TouchDesigner. But without knowing the code, it was unrealistic. I hope to do it through Blueprints.

Sphere trace in the moving direction, snap to the first point hit, trace again. You probably have an acceptance radius in mind. In order to prevent side drift in case points line up diagonally, use the original location xy for tracing.


I broke my head, but I can’t do a trace in the moving direction. i was able to calculate the vector, but no more.



For some reason I have a bug, when I make a trace, the camera moves out. the camera is on the level, not inside the Blueprint.

Derive direction from this:

image

You already have it, since you’re already moving, right?


For some reason I have a bug, when I make a trace, the camera moves out. the camera is on the level, not inside the Blueprint.

Unrelated to the tracing in the pic.



Used the unreal level, there already the character turns as needed, made trace. But the character flickers