I have an elevator, which moves by a simple animation. When player moves on it, he are twitches like in the video on 0:22. How can I fix this?
Answer by crynryan
Mar 16 at 06:43 PM
When the player (or any object really) is on an elevator (or moving platform) I think one of the best practices is to parent that object to the elevator/platform.
I have more than one elevator. Can I parent player via script? For example with OnTriggerEnter method.
Triggers should work just fine, just as long as you remember to unparent the object as it leaves the elevator.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
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.
Answers and Comments
186 People are following this question.
Can I make animations snap to a frame?
How make UI scroll movement effect?
Unity 5 Controlling Animation with UI Button
Play animation single time and move back to default animation
Blend shapes animation is visible in game view