- Home /
2D (Movement and Animation) overlaps physics with RigidBody2D
Im just a beginner on Unity and C# or anything with game engine I'm just learning the basics on how to animate my character while moving. Alas! I know how to animate my character with right transitions with a c# and an animator, also I learned how to make my Player move with a c# code too with a jump. now If I put in the Script CharacterMovement to my Player it works well!, but when an Animator is present, and I play the game, My Player won't fall down to the platform even when my Player has a RigidBody2D with a gravity scale = 3 or 6. Can someone please tell me what is going on???
Answer by Vollmondum · Mar 29, 2019 at 01:16 PM
Animator should be attached to your player's model, and your script should be attached to its parent object (it's supposed to hold collider). Animator animates everything, including rotations and positions. So Script moves player, and animator animates the model.
$$anonymous$$y player model is my parent object, should I make it into two different things?(Player model & Parent Object)
I just figured out what you were talking about! Thank you so so much!!
Your answer
Follow this Question
Related Questions
2D Animation does not start 1 Answer
SpriteManager 2 1 Answer
simulate gravity in a 2D game 3 Answers
Sprite animations won't export/run in a published build unless you play in editor first 1 Answer
Animation transform lock 0 Answers