What am i doing wrong with this ForLoop and LineTrace?

I cant figure out what I am doing wrong here.

How come when I rotate my Drone 90 degrees left or right, the spacing of my horizontal line traces get closer together until they are all on 1 point?

any help would be appreciated, thanks.



1 Like

You’re adding to absolute Y. As you rotate the object, absolute Y does not rotate.

Is it supposed to be a ‘fan’ around the drone?

Thanks for your reply, the horiztonal line traces are supposed to stay spread out like they are in the first image. But when I turn the drone left or right, they all go together like in the second image.

I have also tried this line tracing from a socket on the mesh and get the same result.

1 Like

It’s the math that’s wrong, I’m afraid.

What you have here, will not work as you rotate the model.

I can show you some code , but a little later…

If you could, that would be greatly appriciated. No rush.

I am trying to do this to simulate something i am trying to build in real life.

1 Like

Like this

drone

You only need to set ‘total scan angle’ and NLines :slight_smile:

2 Likes

Man… Thank you so much. Works perfectly.

I didnt know about the node RotateVectorAroundAxis.

Much appreciated.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.