Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by okm1123 · Sep 02, 2014 at 09:30 PM · 2dphysics3d2d-platformerplatformer

Should 2.5D use 3D or 2D settings ?

I want to make a 2.5D (2D orthographical view but only with 3d models instead of sprites) game and I want to know if I should use 3d settings and features ( rigidboy , cube collider ,vector3) or just use the 2D settings ( rigidbody2d , box collider , vector2 ) .

just for the record it will be a 2d platformer but with 3d models and lighting .

Also I see that some of 3d features arent in 2d , forexample the Physics.Ignorecollision method , so if it wont make a difference if I used one of them , then I think 3d is better .

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HuskyPanda213 · Sep 02, 2014 at 09:36 PM 0
Share

You could use either; I would stick with 2d if you want the levels to not be extruding. Otherwise use the 3d settings.

avatar image supernat · Sep 02, 2014 at 10:04 PM 0
Share

I can't give you a certain answer, but I would go with 3D myself unless you need performance increase, which the 2D I am assu$$anonymous$$g would perform better. One issue with 2D colliders is they will rotate with your 3D object but are flat, so they may not collide in your intended fashion (I don't know what would happen if you rotated it 95 degrees around Y for instance, maybe it would work), whereas 3D will rotate, but it's still covering the volume of the 3D object. So a problem would arise if your 3D object sticks out farther in the Z axis than the X axis, the 2D collider will then only cover the length at starting position in the X axis. To get around this, I suppose you could create a parent object with the collider sized to the average viewable size of the object, then rotate the object as a child and scale the collider then based on the 3D projection in each axis, so it's not a killer.

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by supericecream · Sep 02, 2014 at 10:20 PM

For your case, you should use 3D settings since you are using 3D models (2D colliders are not designed for working with 3D models, since its using Box2D). Just use orthogonal camera and you will be ready to go. Also, you answered it yourself, you like the 3D features better :). Just use 3D.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by superluigi · Sep 02, 2014 at 10:03 PM

There's no answer for this. Use whatever works best for you. 2.5D game play like 2D games so you can use 2D components if you want or you can stick with 3D components. I haven't checked to see if this has been fixed, but not too long ago OnTriggerEnter2D would fire every frame like OnTriggerStay2D. So now when I work in 2D I still use 3D components.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image okm1123 · Sep 03, 2014 at 09:06 AM 0
Share

yeah I remember that bug , it was fixed in 4.5 though .

avatar image
0

Answer by kacyesp · Sep 02, 2014 at 10:14 PM

Depends on the look what you want. Do you want it to be more realistic ? Then go with 3D, else 2D.

Also depends on what platforms you're aiming for. Going for mobile devices, well then you better keep in mind 3D requires more processing power.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

2D 360 degress platformer example needed 0 Answers

2d physics 1 Answer

My character moves in seemingly random directions. 1 Answer

Scale object, collision not working 2 Answers

Using a sprite sheet in a 3d enviroment? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges