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
3
Question by medberg · May 24, 2015 at 02:39 PM · terrainfps controllerfalling

How to start first person controller on terrain without falling

This is probably a simple solve, but I can't seem to set the first person controller to a position such that when the game starts it's not immediately falling. Even right on the terrain it still makes the "Land Sound" right off the bat. Is there a way to initialize the first person controller to a stationary position?

Edit: I positioned the controller so it no longer falls, however the land sound still plays immediately which is slightly irritating.

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 virgiliu · May 27, 2015 at 02:02 PM 0
Share

You could deactivate the audio component on start and enable it after 0.5-1 seconds so that when the character first hits the floor the audio is disabled so it won't play.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Robdon · Feb 08, 2016 at 05:12 PM

I know its old, but I've found a fix for this.

You have to change the FirstPersonController.cs script.

At the top, where it defines m_PreviouslyGrounded, set it to true.

So: private bool m_PreviouslyGrounded = true;

Then when its created, it thinks its already grounded.

Also, I found if you enabled/disable the FPSController it was playing the landed sound (last sound played), and I had to also unflag the 'Play on Awake' flag on the FPSController 'Audio Source' in the inspector.

HTHs.

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 jospalgal · Aug 15, 2017 at 05:05 PM 0
Share

I had the same trouble and your answer solved the issue, thanks!

avatar image
0

Answer by Jonnoiscooler · May 29, 2015 at 04:25 AM

I agree with vpld, the reason the land sound plays is most likely because Unity detects a collision on start. If it didn't detect the collision your player would fall through the ground. Try disabling the sound briefly on start

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

How do I change scenes when player falls off the terrain / The player just keep falling 2 Answers

How Do I Stop My Character From Falling Through The Terrain!? 1 Answer

My character falls through the terrian 7 Answers

falling through the terrain 0 Answers

Having multiple issues with unity. suggestions? 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