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 tucebo · Nov 24, 2019 at 06:59 PM · collidersmeshcollidermesh colliderspherecollidermesh colliders

Walking in A Inner Sphere ?,Inner Sphere Walk

Hi,

I want to make a player walk inside a sphere. My question is what kind of direction I have to aim to solve the problem to create an inner sphere mesh collider that the player can walk comfortably. I did an inverted mesh in Zbrush divide it into two, and it is a real low poly mesh to make it easier for mesh collider to calculate. It didn't work when I use mesh collider; it closes the top of my hemisphere. I am planning to create a panel by panel a sphere and for each panel to create another collider. Still, it is the least preferable case as anyone can imagine. What road should I have to take to make it easy and applicable to future projects?

Thanks A Lot!,Hi,

I want to make a player walk inside a sphere. My question is what kind of direction I have to aim to solve the problem to create an inner sphere mesh collider that the player can walk comfortably. I did an inverted mesh in Zbrush divide it into two, and it is a real low poly mesh to make it easier for mesh collider to calculate. It didn't work when I use mesh collider; it closes the top of my hemisphere. I am planning to create a panel by panel a sphere. And for each panel to create another collider. Still, it is the least preferable case as anybody can imagine. What road should I have to take to make it easy and applicable to future projects?

Thanks A lot!

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 tucebo · Nov 25, 2019 at 01:38 PM 0
Share

Inverting normal is a option? Because walk on earth scripts are not functioning if the meshes are inverted. I am not a coder I try to grasp some sense while watching tutorials but couldn't understand why I stuck in this so bad. One month ago it was somehow(badly) functioning a inner shelled sphere with this plane tutorial codes (not exactly but at least with a came upside down it did work) Now I lost a bit direction. Script writing is only the way I guess which I have no idea how to do that...

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by suIly · Nov 25, 2019 at 01:59 PM

You can try adding an edge collider, and to move the points around the outline of the circle

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 Kishotta · Nov 25, 2019 at 06:01 PM

A couple of thoughts here:

  • If your player needs to walk on the inside of a perfectly smooth sphere (that is, there are no bumps or "hills") you can fake walking by rotating your player around the center of sphere. No colliders required.

  • If your player needs to conform to the inside surface of an irregular shape you can follow the same steps you would take for walking along the exterior surface (raycasting from some height above the surface) but instead of placing the player at the contact position facing outwards ( hit.normal), have them face inwards( -hit.normal).

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

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

Is it new in Unity? Collider exception . . . 1 Answer

How to add mesh collider into terrain-trees? 1 Answer

How to correct add collider to every child of gameobject? 1 Answer

How can I do drilling using mesh colliders 0 Answers

Is there any way to get the optimized (cooked) mesh of a mesh collider? 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