Hello,
I just started using UE4. In my game, I want to force the player to move strictly on a grid’s lines. I’ve managed to create a grid of points in 3D space but I have no idea how to implement some features I want. I’d appreciate some pointers on where to start.
As you can see this is a grid with debug circles. I need the following:
- I need to connect grid points with lines. DebugLine would be PERFECT if I it wasn’t only for debug. I need a solid line to connect those two points.
I thought of creating static meshes and procedurally add then to grid but I don’t feel that’s the best way to go. I’ve also tried to use splines but it feels too complicated. Is there really no method to just draw a straight line between two points?
- I need the lines to change color as the player moves on them. So let’s say a line is initially blue. When the player reaches the middle of the line, the line would be half blue half red. When the player finish crossing the line, the line would be full red.
So when the pawn is at 3/4 of a line, the line will be 3/4 red and 1/4 black. I searched but I didn’t find a way to partially change the material of a mesh like that. Am I even thinking the right way?
Again, I don’t expect a full solution. I wouldn’t want for anyone to spend their time on my problem. All I ask for is a few pointers. I’m a seasoned programmer but it’s literally my first steps in UE4 and Game Development. I’m not sure I’m even in the right mindset.
So yeah, please help me Thank you all in advance!