Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Instansiated rigidbody Issue

Discussion in 'Scripting' started by cyboerg, Feb 20, 2015.

  1. cyboerg

    cyboerg

    Joined:
    Jan 28, 2015
    Posts:
    9
    Hi guys!

    Im going to make this a fast one, because its most likely a retarded mistake on my side.

    I have a player, with a rigidbody and a collider.
    Then I have a barrier with a rigidbody and a collider.

    The player can place the barrier by instantiating it with a right click.

    But when I run up to and against it it shoots the player upward high into the air, projectiles also gets deflected upwards.

    Im guessing its got something to do with the rigidbodies.
     
  2. cyboerg

    cyboerg

    Joined:
    Jan 28, 2015
    Posts:
    9
    Correction!

    I have a box collider and trigger assigned, when I disable the collider it doesnt eject the player upwards, but now the player can walk thru the barriers.