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

Line Renderer Physics

Discussion in '2D' started by RedKinetic, Jun 15, 2015.

  1. RedKinetic

    RedKinetic

    Joined:
    Nov 9, 2014
    Posts:
    20
    If you wouldn't mind I have two questions.
    1. http://forum.unity3d.com/threads/line-renderer-collision.332991/#post-2157152

    The other is similar. I have stationary objects in my scene and other objects that spawn and move on screen. The user can drawn lines via line renderer and then I add a box collider to that line for collision forces.
    There are rare glitches in the collisions. Sometimes if the line is large enough, objects will pass through.

    How should I optimize the line? Interpolation, Kinematic, etc.? I want it to be quick, but work well as a collider.

    Thanks, all!
     
  2. Gardes

    Gardes

    Joined:
    Apr 7, 2015
    Posts:
    46
    1. answered in your other post

    2. sometimes if objects are to fast, they will pass a collider. a rigidbody with continoues collision detection is working in most cases for me

    finally it sounds for me your objects or your hole scene is scaled realy small