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
0
Question by jcsizemo · May 01, 2015 at 01:20 AM · 2dcollidermesh3dsprite

How to make 3D colliders on sprites?

I'm making a 2D beat-em-up and doing some camera trickery to make everything look OK. I'm trying to establish a "floor" for my character to walk on, and I'm attempting to make a collider to surround the floor with. Of course, like everything else I've been doing in Unity as of late, I just can't catch a damn break. I'm extremely frustrated at my inability to solve something so simple, but I just don't know what else to do.

I bought the 2DColliderGen utility, and it is able to make a mesh collider that fully encapsulates my sprite. However - and this is the reason for my rage - IT DOESN'T COLLIDE WITH MY CHARACTER'S BOX COLLIDER UNLESS I MAKE IT CONVEX. This is important, because making the collider convex completely changes its shape and it is no longer representative of the sprite I am using. I've read dozens of posts about how mesh colliders only work against other mesh colliders if they are convex, but this is a case of a box collider failing to detect a mesh collider. Upon further investigation, I have discovered that my mesh collider isn't actually fully 3D - it only encompasses the perimeter of my sprite. I want something that completely wraps around the sprite - the ideal case is a collider that is a slightly extruded version of the sprite itself. As far as I can tell, there is absolutely nothing in the 2DColliderGen that is capable of doing this.

I don't want to go and blow more money in the Asset Store yet because I'm thinking there's a way to do this. I've tried the free UCLA Mesh generator, but this also doesn't work - it will create a usable mesh that collides, but it always changes the scaling such that it isn't 1:1 with my sprite. I swear to God, it's always something.

Somebody, anybody, if you have experience with this I am begging for your help. I'm seriously on the verge of giving up because it feels like the stupidest things are constantly holding me back.

Comment
Add comment · Show 1
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 komodor · Jul 01, 2015 at 11:22 AM 0
Share

do you need to generate the collider procedurally? if not, why don't you just create mesh for it?

edit: i found this question as i am trying to make mesh collider out of sprite's mesh, when it's not the tight setting's it works perfect, when it's tight, there's problem with UV mapping, however the collider works, but it's not convex ... it has maximum of 255 triangles and it's pretty hard math to do it automatically ... so i suggest: do the mesh manually if you can

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

How do you bend a 2d texture in 3d?,How do you bend a 2D object in 3D? 0 Answers

3d collider mesh to 2d collider mesh 0 Answers

How to flatten 3d image STL to 2d 0 Answers

Draw/generate shape as 2D sprite? 0 Answers

2d sprite characters in a 3d game 1 Answer


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