Rotation/Position/Help

Title didn’t really explain what I needed. (Sorry)

Anyways, I have this LAZER, and in game, you can rotate it. It’s great. Except ONE problem: Whenever I rotate it, it still shoots the laser straight, not like, turned.
I tryed if statements, but after ten of them, I figured out there were to many possibilites.
Is there anyway I could uh, do this easily?
Any help is appreciated! :smile:

make the laser a child of the object thats shooting it? Depends on how your doing the laser itself.

1 Like

Hmm I’ll try, ty.

Ok it works…but one problem that’s getting on my nerves. Half of the laser is coming out of the other side of the shooter!!!
How do I fix?
I tryed changing the position when instantiated, but different rotations need different position changes. How do I fix? Please? :smile:

i wouldn’t have a clue without seeing your code…

Laser_Clone = Instantiate(Laser,transform.FindChild(“Laser_Shooter”).position + new Vector3(0,0,0),transform.rotation) as GameObject;

just make a public Transform spawnPosition; as a global var and drop Laser_Shooter in it in the inspector…

1 Like