Jump to content

Recommended Posts

I know the coordinates of two prefabs in the world and now I want to draw a line to connect these two prefabs. Is there an easy way to do this?

Since these two prefabs are generally not parallel to the x-axis, my attempt to draw a straight line prefab failed.

I considered rendering particles on the line of two prefabs, but that's too much work for both computer and me.

Now I am thinking of drawing a prefab with anim that each frame has a different angle. And spawn it on the ground so y-axis turns into z-axis. I can calc the angle and select a frame. Calc the distance and scale it. But I'm not sure how the game's camera handles the z-axis. And I can predict that this will not work.

So is there an easy way to make a fx that link two entities?

As shown in the picture below:

265226201_1.jpg.6f8e2887670c32d74f420e88268e5f6f.jpg

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...