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 NoSoup4you · May 18, 2015 at 06:56 AM · 2dspritecollision detectionbillboard

Billboarded sprite with rigidbody in 3D world - slides around on top of surfaces

I've got a 3/4 view perspective camera which can rotate around in 45 degree increments, and my characters/items are billboarded sprites with 8 possible facing directions. Something like Final Fantasy Tactics, Persona 2 etc. Problem is, the billboarding is causing part of the object to be inside the surface it sits on, and it slides around until it hits a wall. How should I approach this? Is there a way I can say, billboard the sprite but have a collision mask that's untouched?

Couple things of note... One, the problem behaved differently on two different video cards in Unity 4, and B, the sliding is a lot faster since upgrading to Unity 5.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by LividPixel · Aug 14, 2015 at 01:24 PM

If you're going to do something like a billboard as a graphical effect for your object, you're going to want to segregate the object's physical representation and graphical representation. You could have another object (that doesn't have a Renderer) represent the object physically, and have the graphical representation (with the billboard script) be a child of that object.

If the object is behaving differently depending on the video card, or changing in Unity 5, it could be dependent on the framerate. This often occurs if you're moving something around in Update() without using 'Time.deltaTime'. This is usually the first thing you should assume if things go haywire when you uncap the framerate/turn off v-sync.

I can imagine, with the billboard script affecting the collision resolution, the script would change the rotation of the object and put it within the ground, then collision would resolve and it would be moved. At a higher framerate, if the billboard script isn't placed in FixedUpdate(), this could occur more frequently.

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

20 People are following this question.

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

Related Questions

Unity 5.1.1 Transform Lag/Bug 0 Answers

Unity 4.3 Any chance Sprite mesh will become accessible in futur update ? 1 Answer

Rotating a Sprite to face mouse / target? 2 Answers

UI Image has no sprite definition 0 Answers

Running 2D Sprite Animation Once? 2 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