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

Physics of "Battle City" clone game

Discussion in '2D' started by 8Observer8, Oct 12, 2015.

  1. 8Observer8

    8Observer8

    Joined:
    Apr 29, 2015
    Posts:
    99
    Hello,

    I want to create "Battle City" clone game for non-commercial usage. So my question is: can I use RigideBody2D for my tank? Because if I will use it I will push enemy tanks, but I don't want. I want that my tank stops when it meets the enemy tank. And I don't want that it pushes the enemy tank. I want to have Physics how in original "Battle City" game.
     
    Last edited: Oct 12, 2015
  2. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    I don't know Battle City at all, but to stop your tanks from pushing around other tanks, you can just modify them to have a very high mass.
     
    8Observer8 likes this.
  3. 8Observer8

    8Observer8

    Joined:
    Apr 29, 2015
    Posts:
    99
    It is very good idea! I will try. Thanks!
     
  4. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    Or, if that doesn't fit your needs, apply a force in the opposite direction once they start pushing another tank.
     
    8Observer8 likes this.