Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 giantkilleroverunity3d · Oct 22, 2018 at 05:58 PM · spherecollider

I want to be inside a spherical collider.

Hello, I have a project that the player is inside a spherical environment. A ball with in a ball. The inside ball rolls around inside the bigger ball, i. e. sphere within a sphere. The first question is 'Is this capable in Unity and if so how would I devise a rigidbody' and then the second part is about 'the collider setup itself'? I already have the concept of building the sphere from plates but that would very tedious. This solution has been haunting me for months. Thank you in advance.

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 II_Spoon_II · Oct 22, 2018 at 06:18 PM 0
Share

Hello,

Is the player prefab is the sphere inside? if yes, it depends. do you want the player camera to be inside or outside the big sphere? if inside you can, but when the camera is inside, you can not see the big sphere you are in, you as if it is invisible(just it's shadow is visible). You can also try to add an effect to the camera if it will serve your goal. If outside, you can not do it with unity sphere, because you can't see what's inside of it.

However you may find something in the asset store.

4 Replies

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

Answer by FrZn · Oct 22, 2018 at 11:03 PM

You could use blender to create a sphere and then flip the normals in blender, so the faces are facing inwards. Then just add a mesh collider to the big sphere and you have your game environment. If you want to rotate the big sphere in the game, just attach a rigidbody and use rigidbody.RotatePosition() to rotate it. You will also want to make it a kinematic rigidbody, so it can only be moved and rotated by script. The smaller ball would also have to have a rigidbody attached for it to be able to be moved by the physics system.

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 giantkilleroverunity3d · Oct 23, 2018 at 05:16 AM 0
Share

I used Wings3d. Really sweet progress made. Thank you to all. $$anonymous$$ay the rigidbody force be with you all!

avatar image
2

Answer by triangle4studios · Dec 10, 2020 at 07:36 PM

INVERTED COLLIDER

TLDR: Invert the normals of a sphere in blender etc, and apply a mesh collider in unity.


  1. Create a sphere in blender

  2. Edit Mode

  3. Ctrl A

  4. Mesh->normals->recalculate inside

  5. Object Mode

  6. Select Sphere

  7. File->export ->FBX

  8. Selected objects only, not collections

  9. Select only the "mesh" option

  10. Select Apply transform(Experimental)

  11. Save it

  12. Import into unity by dragging and dropping the fbx file you saved into file browser

  13. Apply mesh collider

  14. Done

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
1

Answer by bgprocks · Oct 22, 2018 at 09:30 PM

Not sure, but did you try creating the outer sphere in a modeling app, then import it, use a mesh collider and a double sided material. Just thinking this might work.

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 giantkilleroverunity3d · Oct 22, 2018 at 08:26 PM

@II_Spoon_II Yes the player is inside and the camera follows it. I want to have a mesh inside also but I can easily add that to the outside and see it from the inside. The outer sphere acts as a spherical boundary for the inner player sphere. The player rolls around in side.

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

97 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 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 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 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 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

Sphere Collider doesn't move after collision with Character Controller 1 Answer

Marking trail of sphere on mesh 0 Answers

put blanket on the ground 2 Answers

Golfball sphere collider "Hops" over vertex-joined planes at intersection? 1 Answer

Check whether objects are within a sphere of influence 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