• 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 GameGuy · Nov 25, 2012 at 05:38 PM · moving platformunity 3.5character motor

Character Motor & Moving Platform Class

How do I use the Moving Platform Class in the Character Motor Script correctly and where can I find some documentation for it? Unfortunately the code section in the Moving Platform Class is not documented and my Character always jitters on a Horizontal or Vertical Moving Platform.

I created a Animation in Unity, and I moved the Platform per script with

 transform.Translate(Vector3.up * Time.deltaTime)

but both methods produce a visible jitter.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by GameGuy · Nov 27, 2012 at 04:02 PM

When you use Code to move a platform you should disable "Use Fixed Update" in the Character Motor Script.

When using Animations make sure you check "Animate Physics" on your Platform.

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 junkrar · Apr 02, 2013 at 04:45 AM 0
Share

Hi, I'm using Code to move the platform but not an animation. That being said, your advice to "disable fixed update" helped me fix most of my problems. I still fall through once in a very rare while. Do you have any other advice?

avatar image
0

Answer by thaiscorpion · Nov 26, 2012 at 04:36 PM

I have not used this Platform Class, but usually in other games I made when using moving platforms I parent the character to the platform when he lands and remove him when he jumps this way you remove all jitters. Hope this helps.

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 GameGuy · Nov 27, 2012 at 04:05 PM 0
Share

The Platform Class already parents the CC to the Platform for you, so there is no need to do that.

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

12 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

Related Questions

How to move a Third Person Controller with a moving platform? 0 Answers

Shift Sprinting Camera Animation Based on? 0 Answers

An easy way to get the global position from a child object 4 Answers

Objects sticks to Moving Platforms 0 Answers

Player has jittery and slow movement when child of an animated object. 0 Answers

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