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 nuno · May 28, 2012 at 04:03 PM · fpsmodelfbx

How to make FPS character move inside a building model?

I am trying to do something as simple as importing a FBX model of a building and making my FPS character to walk inside it.

I have no problem with the FPS character nor with importing the model. What I am having trouble with is to actually making the character walk inside the model.

I have tried applying a box collider and mesh collider with no effect. I have also tried making sure the character is inside the model and above it. Nevertheless, everytime the character falls through the building. It only stops if I have a plane under the building.

What am I doing wrong or simply not doing? Maybe some FBX import setting I need to set?

Thanks.

Comment
Add comment · Show 8
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 whydoidoit · May 28, 2012 at 04:06 PM 0
Share

Well I think I might know what it is, but not how to fix it :) Your problem might be that the normals of the mesh collider are facing outwards I would guess. I'm supposing most internal scenes are constructed in the Unity editor out of parts - all of which have the normals pointing outwards because you are not supposed to be inside them. Very interested to hear about this...

avatar image nuno · May 28, 2012 at 04:20 PM 0
Share

I have tried to import the model and chaning the normals from "import" to "calculate" but had the same result. I am guessing that if the problem was what you are thinking I should be able to make the character walk on the top of the building, right? I can't do that, but maybe I am doing something wrong.

avatar image whydoidoit · May 28, 2012 at 04:22 PM 0
Share

Ok, if you can't do that either then I'm definitely not right.

You added a mesh collider and it definitely showed your mesh in its selector? I've managed to add one before and not have the right mesh in it (no idea how)

avatar image nuno · May 28, 2012 at 04:33 PM 0
Share

You were right about not having the mesh selected on the $$anonymous$$esh Collider. I am a beginner to Unity as you can tell. Nevertheless, I now can see the mesh collider on the viewports, but can't get to scale it to the model size. The $$anonymous$$esh Collider appears at the center of the model, but like 10x smaller. If I try to resize the mesh, the model gets also resized.. Any idea?

avatar image whydoidoit · May 28, 2012 at 04:35 PM 0
Share

$$anonymous$$aybe the model import settings - try setting Scale Factor to 1 - it's always set to .1 for me on FBX files.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by whydoidoit · May 28, 2012 at 04:36 PM

We worked it out :)

@nuno needed to add a mesh collider and make sure that the mesh was actually selected in the mesh on the collider.

The mesh collider also needed to be added to a separate game object that was scaled, this is due to some factor about the import that I don't understand.

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

6 People are following this question.

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

Related Questions

fbx model causing low FPS 1 Answer

Making my player model invisible to my camera 2 Answers

Vectorworks model FBX export issue 0 Answers

UV Map is broken in Unity when i export fbx file from Cinema4d to Unity 0 Answers

How to Play 2 Animations from the same Model at the same time? 3 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