KNO3333 Posted February 4, 2023 Share Posted February 4, 2023 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: Link to comment https://forums.kleientertainment.com/forums/topic/145921-fx-how-to-draw-a-line-that-links-two-prefabs-in-the-world/ Share on other sites More sharing options...
KNO3333 Posted February 6, 2023 Author Share Posted February 6, 2023 Solved. By using strecher component which is used by shadow hand. Here's the result: I didn't find where to change the title into [Solved]... Link to comment https://forums.kleientertainment.com/forums/topic/145921-fx-how-to-draw-a-line-that-links-two-prefabs-in-the-world/#findComment-1620260 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now