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

Block/Castle Building Physics Problem

Discussion in 'Physics' started by needforbleed, May 25, 2016.

  1. needforbleed

    needforbleed

    Joined:
    Mar 19, 2015
    Posts:
    92
    Hey folks!
    I finally figured out a way to spawn blocks in a minecraft like behavior.
    The problem is that their colliders excactly match each other.
    That means blocks will "stick" together even though there is no intersection.
    That's okay so far but since I want these blocks to be shoot by canons there are several problems to solve.
    When the canonball hits a bock it shouldn't affect other blocks that much.
    But since they stick to each other the block that was hit pulls all blocks with it.
    And that's the problem.
    Is there a way to solve it without the blocks not sticking to each other anymore ?



     
  2. U-GeeN

    U-GeeN

    Joined:
    Mar 22, 2015
    Posts:
    95
    Try to add more mass and drag to your blocks.
    You also could add fixed joints between blocks and set a break force to them. So blocks are only moved only if your canon ball has more force than the joint.