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
0
Question by master_moridin · Oct 05, 2014 at 09:25 PM · charactercontrollercharacter controllermoving platform

How to get a character to stay on a moving platform?

I've been trying to implement a way for my character to stand on moving platforms, but no matter what solutions I've tried that I've found (parenting, setting the velocity equal to that of the platform's, using MovePosition, or even using the code from the Acrocatic package on the asset store) my character either slides, bounces, or falls straight through the platform.

I'm using the CharacterController2D from here: https://github.com/prime31/CharacterController2D/blob/master/Assets/CharacterController2D/Scripts/CharacterController2D.cs

Along with the PhysicsPlayerTester from the same place: https://github.com/prime31/CharacterController2D/blob/master/Assets/CharacterController2D/Demo/Physics-Based/PhysicsPlayerTester.cs

Any ideas on something I could attempt?

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
Best Answer

Answer by master_moridin · Oct 10, 2014 at 07:12 AM

I wound up finding and using the method described in this video: https://www.youtube.com/watch?v=hkLAdo9ODDs&list=UUCc85sCjXZish1mGnm8vRFg

Based on a cursory glance it seems to be really similar in basis to the one you linked, and this one definitely works.

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 jester-race · Oct 06, 2014 at 06:11 AM

I'm not sure if this would work, but have you tried giving the platform a physics material with high friction?

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 master_moridin · Oct 06, 2014 at 06:50 AM 0
Share

I did try that, it didn't help any. Character continued to slide on top of the platform.

avatar image jester-race · Oct 07, 2014 at 03:56 AM 0
Share

I just found this tutorial last night. The only part I've watched so far is the one about horizontally-moving platforms: https://www.youtube.com/watch?v=iUSzqX3dqrg#t=398

I'm actually amazed by how simple it is. Let us know if you get it working, especially if you use the method described in that video.

avatar image
0

Answer by Spy-King · Nov 01, 2015 at 01:27 PM

See this video. It works for both 2D and 3D.

https://youtu.be/t6Xr6iRMWII

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

29 People are following this question.

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

Related Questions

Framerate independent Movement 2 Answers

CharracterController 1 Answer

Best Strategy to interact with rigidbody 2 Answers

Player Inconsistent Jumps 0 Answers

How to make character to face in specific direction.,How To Rotate Character When Arrow Key Is Pressed? 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