Hi Unity member and help, it would be useful if one of you guys could help with something i am working on. Currently, i am working on a 3d game and i am coming into a problem when try to shoot the laser. Basically instead of the laser facing forward and going in direction of the player, it will spawn where the 90 or 270 degree with its width facing the player. How would i go about making it so it will face forward? An example of the code being used is below
GameObject Lightening = (GameObject)Instantiate(Lighting, transform.position + transform.forward + (transform.right), PlayerCam.transform.rotation);