• 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 Fubiou · Aug 06, 2011 at 03:57 PM · charactercontrollerplatformerthirdpersoncontrollermoving-platformmove-with-moving-platform

CharacterController falls through or slips off moving platforms 2.0

Hi, I am using a script based on ThirdPersonController script, I tried to add the solution present on

http://answers.unity3d.com/questions/8207/charactercontroller-falls-through-or-slips-off-mov.html#comment-153572

but failed miserably, something worked but the character spawned in a place that wasnt the place I seted and he was sliding the platform. My original solution was to parent it to the platform, worked very well but I am afraid of the physical consequences of such act. Please, can you give me a hand? to improve the ThirdPersonController with that platform solution?

Sorry about my noobish and my terrible english!

Comment
Add comment · Show 6
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 SisterKy · Aug 07, 2011 at 08:13 AM 0
Share

You should add that you applied Jaaps approach.

that's not particularly more detailed... =/ where did you set the character to spawn? where is it spawning ins$$anonymous$$d? Did you copy the script in the other thread, did you type it down yourself or did you try to modify it? Did you add something? Do you get error-messages? how does the slipping work exactly?

Greetz, $$anonymous$$y.

avatar image Fubiou · Aug 07, 2011 at 12:26 PM 0
Share

I undoed it but did again with the same results

Well I have the counscience that I made things wrong here but well, the character must spawn at x102 y16 z95 and it spawns at x204 y-2 z176

When I find the platform it seems to work in some way but the character slides faster than platform speed and falls.

I just added the script, modified "mycontroller" variable (not a big deal) but I maybe it isnt appliable the way it is in the thirdpersoncontroller script because differences in the movement/jump logic (dont know if i am wrong)

avatar image Fubiou · Aug 07, 2011 at 12:28 PM 0
Share

Forgot to say, the character was considerable faster after apply the code.

avatar image SisterKy · Aug 07, 2011 at 02:10 PM 0
Share

Do you apply that code AND parent your character to the platform?

avatar image SisterKy · Aug 10, 2011 at 01:56 AM 0
Share

Well, DO you?? I'm sorry I don't have any other ideas what this might be... maybe you can call in @Jaap $$anonymous$$reijkamp since this is his script, but unfortunately he has not been seen here in over a month. You could try to reach him directly via his website...? (not sure if this is a proper approach but since he posted the link in his profile he can't complain :p ) Greetz, $$anonymous$$y.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by hofcsaba · Dec 16, 2011 at 09:00 PM

partially managed to solved the issue. I had the same problem as you have. I rewrote the script from scratch. My script adds the difference vector of the platforms positions before,and after the movement. Then it moves the character controller with that vector. Unfortunately it only works if the platform is not moving fast, and got an X, or a Z axis movement as well(lol).

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 Fubiou · Dec 17, 2011 at 12:02 PM

I calculated the vector velocity of the platform and sent to the character to sum with the final movement if it is in touch, it doesnt work well if the platform is much fast because the frame calculation, it is working nice for me.

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.

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

6 People are following this question.

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

Related Questions

What is the easiest way to push a character controller with a moving platform? 0 Answers

Keeping the player on a moving platform? 0 Answers

Make a Platform push a character controller? 2 Answers

moving platform jumping and then continuing it's path 0 Answers

Problem with moving (animated) platforms. need script to keep player object on 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