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 JetMasta · Oct 29, 2010 at 02:38 PM · characterfallingtornado-twinsworm

Why does my character keep falling?

Im following the tornado twins' tutorial on unity, the worm one. I have been following it quite closely, however... when i goto preveiw the game, my character simple falls through the floor. Help!? much THANKS! Ok here's a step by step of what i do. 1) select new scene. 2) game object> create other> cube 3) edit co-ordinats to 0,0,0. resize it to 25,0.3,25 4) add in point light 5) game object> sphere 6) component> game controller, message: add, replace, cancel. I hit add 7) add script to sphere: var speed = 3.0; var rotateSpeed = 3.0;

function Update () { var controller : CharacterController = GetComponent(CharacterController);

// Rotate around y - axis transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);

//move forward / backward var forward = transform.TransformDirection(Vector3.forward); var curSpeed = speed * Input.GetAxis ("Vertical"); controller.SimpleMove(forward*curSpeed);

}

@script RequireComponent(CharacterController)

8) add smoothfollow to main camera, add sphere to main cam's target. 9) preveiw game, sphere falls thru floor, and camera follows.

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

6 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Ostagar · Oct 29, 2010 at 03:24 PM

This is a common issue when starting out with Unity. Double-check these things:

  1. Ensure your player's position.y is well above the floor.
  2. Ensure the floor and player both have colliders
  3. Ensure isTrigger is off on those colliders.

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 JetMasta · Oct 29, 2010 at 03:34 PM 0
Share

I have done all of these things which is why i cant understand what is going on :(

avatar image
1

Answer by soulzero · Oct 29, 2010 at 03:15 PM

Be sure to add a collider to the floor? And make sure that your character is placed above the floor collider?

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 elbon96 · Oct 29, 2010 at 03:17 PM

You must make sure that both your player and your floor have colliders. If both have colliders, also be sure that your player is just above the floor, not touching it.

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 ilhokim · Feb 13, 2011 at 09:56 PM

1.Ensure your player's position.y is well above the floor. 2.Ensure the floor and player both have colliders 3.Ensure isTrigger is off on those colliders.

You must make sure that both your player and your floor have colliders. If both have colliders, also be sure that your player is just above the floor, not touching it.

still player falls through the floor.

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 Ashment · Feb 13, 2011 at 11:53 PM

Ensure these things 1. Players y position is above floor, not touching 2. That both the Player AND the Floor have colliders 3. That both colliders do not have the isTrigger ticked 4. That at least one of the objects, Player, or floor, have rigid body component added to it. (this is done by clicking the object first, and going to the top bar and clicking Component>Physics>Rigidbody)

If this still doesn't work, you are lame... just kidding, you can try to use character controller and use the simple move function.

**If this still doesn't work, you are truly lame... maybe not, you should just quit game development...

Hope this helps

                                                              -Ashment-

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
  • 1
  • 2
  • ›

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

No one has followed this question yet.

Related Questions

how to create Objectives 1 Answer

My character falls through the terrian 7 Answers

Character falling backwards! 1 Answer

GAMEOVER SCRIPT for worm game 2 Answers

Falling through platforms 1 Answer


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