• 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 Random User · Nov 12, 2010 at 03:14 AM · fallingthroughelevator

Falling Through My Elevator..

Hey guys im designing a Lvl and i have an elevator,but the thing is everytime i get in my elevator and it goes up i fall down.My elevator is animated it doesnt have code or anything and it has Colliders.

If anyone can help me that would be Super!

for now i'll work on something else lol untill then thanks in advance.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by JTown 1 · Nov 12, 2010 at 08:19 AM

(edit: assuming the elevator's colliders are set up correctly) One possible solution would be to raycast from character's head down to elevator floor and place the character at hit.point (offset y as needed to make sure you're not placing character halfway through the floor).

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 Random User · Nov 12, 2010 at 02:18 PM 0
Share

Have no idea how to do that, perhaps i'll look up a vid to see how that works.Thanks for your time to try and help me with my newbish problems.

avatar image
1

Answer by HolBol · Nov 12, 2010 at 01:10 PM

put a character motor and character controller on your main character- it has built in stuff for staying on platforms.

Comment
Add comment · Show 2 · 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 Random User · Nov 12, 2010 at 02:15 PM 0
Share

I'm new to this program as well as to making games,but of course you probably figured that out.I use the character controller to move my toon around.But i've never seen the "Character $$anonymous$$otor". Is it a script?,if so can you please show me thanks =).

avatar image HolBol · Nov 12, 2010 at 10:42 PM 0
Share

If you have uunity 3, should be in the standard assets folder, and look in something like ' character scripts' or whatever, it SHould be in there :).

avatar image
1

Answer by Random User · Nov 13, 2010 at 01:35 AM

Guys Thank you so much for your help and TY Fishman92 it worked great now i can keep going !!

For those of you who have this same problem, this is what you do..

1- Create a brand new project and tell unity you want the files that come with Unity like the character controller and standard assets and all that good stuff..

2 - Once you have the new project open and ready to go.Under the project panel in unity you will find a search bar just type in "Character Motor" with out the "" lol.

3- Click on it and it should be a script a really long and painfull script to look at that i hope i understand some day, anyway copy it and open your project were you need it.

4 - Now make a brand new script and paste it all on there save it and attach it to your character or FPS controller and there you go..

Note: If theres an easier way of doing this im sorry im just telling you guys how i did it =) well Thanks to you guys that helped me and GL.

Comment
Add comment · Show 2 · 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 HolBol · Nov 14, 2010 at 09:57 PM 0
Share

kool, glad it worked, tick my answer as correct and vote plz :D

avatar image bwiegele · May 20, 2011 at 01:57 AM 0
Share

Random User, I did as you directed and now my character is moving insanely slow. I even changed the max forward speed to 300 and he's crawling along. Did you have this issue?

I am using the 3rd person character controller as well, not FPS just FYI.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Some objects falls through Plane with mesh collider(grenade) 2 Answers

Having multiple issues with unity. suggestions? 0 Answers

Player Falling Though Floor After Build With Unity IPhone 0 Answers

Falling Through Terrain No Matter What? 0 Answers

Falling through the floor issue 11 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges