Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone get moving platforms to work? #11

Closed
LukeSanderson18 opened this issue Apr 14, 2014 · 6 comments
Closed

Anyone get moving platforms to work? #11

LukeSanderson18 opened this issue Apr 14, 2014 · 6 comments

Comments

@LukeSanderson18
Copy link

Been messing around with all sorts of scripts to no avail. Dyou reckon we can just do a simple parenting to floor job?

@prime31
Copy link
Owner

prime31 commented Apr 15, 2014

All the rules for Unitys normal CharacterController apply to the CharacterController2D so whatever you used for it should work fine. One method is to parent to the platform. Another similar method is to apply the platforms movement before applying the movement to the CharacterController2D.

Mike

On Apr 14, 2014, at 4:58 PM, Cactuar1 notifications@github.com wrote:

Been messing around with all sorts of scripts to no avail. Dyou reckon we can just do a simple parenting to floor job?


Reply to this email directly or view it on GitHub.

@sonicfran86
Copy link

If I do parenting the controller wont collide anymore with this platform

@aidinzolghadr
Copy link

Any one achieved this?

@prime31
Copy link
Owner

prime31 commented Aug 16, 2015

Yup. Just follow any of the strategies that work for the normal CharacterController such as parenting to a moving platform or adding it's velocity to the characters.

Mike

On Aug 16, 2015, at 6:44 AM, Aidin Zolghadr notifications@github.com wrote:

Any one achieved this?


Reply to this email directly or view it on GitHub.

@aidinzolghadr
Copy link

Problem with adding moving platform's speed is the order. I'm not sure whether you should add it's speed before or after to the characters but:

A) The order I think is important.
B) How can I make sure it happens with the order I want?

Also, which way do you think is better, parenting or adding velocity? A user previously claims that parenting causes a collision problem.

@aidinzolghadr
Copy link

I've done both ways but

A) Parenting won't help me because I need to jump from the moving platform and need to add it's speed to character. Also when shooting.

B) I tried to do it manually and when I add moving platform's speed to velocity component, as the platform goes up, character slowly goes inside the platform.

Any idea?

@prime31 prime31 closed this as completed Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants