Search Unity

Problem with an Objects Position

Discussion in 'Physics' started by Vinsinsanity, Feb 20, 2015.

  1. Vinsinsanity

    Vinsinsanity

    Joined:
    Feb 20, 2015
    Posts:
    3
    Hello Everyone,

    I'm fairly new to game development and I am working on an FPS game currently. The problem I have is with my Player characters position relative to its transform mover. I imported the FPS controller from the sample assets on the Asset store and I am trying to create a bullet firing from the barrel of my gun. whenever I import the line renderer onto the barrel end it shoots behind the camera instead of in front. I found out that my controller and a majority of its child objects transform are off to the corner somewhere. If anyone knows the kind of problem I have and can help me that would be great, and let me know if I need to elaborate on my problem further.

    -Vinsinsanity
     
  2. modegames

    modegames

    Joined:
    Dec 1, 2014
    Posts:
    37
    I suppose it depends where you've added the line renderer might be a reason for this mistake. I would suggest not to have the line renderer within the barrel or the character, you can get the position from the barrel and then draw the line with the renderer in the world space.
     
  3. Vinsinsanity

    Vinsinsanity

    Joined:
    Feb 20, 2015
    Posts:
    3
    Okay, I'll give it a try. Thanks!