Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rigidbody and collider question

Discussion in 'Getting Started' started by kmo86, May 11, 2021.

  1. kmo86

    kmo86

    Joined:
    Dec 15, 2020
    Posts:
    104
    Is there any reason to use the Rigidbody2D and collider2D rather than the ones without 2D in name. I know 2D are for 2D games. I am currently making a Flappy Bird game which is 2D but ive done it in 3D game and used the 2D rigidbody and found because I'm used to using the normal 3D rigidbody and collider the coding I'm used to using doesnt work. So I've changed to the Rigidbody and collider not 2D ones and it seems to work fine. So is there any reason to use 2D ones or is it personal choice?
     
  2. jbnlwilliams1

    jbnlwilliams1

    Joined:
    May 21, 2019
    Posts:
    267
    The 2d versions are specifically for 2d projects , using sprites, not 3d models. This is because the physics engine reacts differently to 3d and 2d.
     
    BrandyStarbrite and Joe-Censored like this.