- Home /
Strange 2D sprite behavior
I can not seem to get 2 sprites with 2D rigid bodies and 2D colliders to properly collide (hit and repel). The first is a player sprite that is moved via animations triggered by key presses. Different settings for is kinematic result in (almost) correct behaviors.
Player | Building | result
kinematic no | yes | player won't move in y-direction
kinematic no | no | player won't move in y-direction
kinematic yes | no | pushes the building (almost worked)
kinematic yes | yes | no collisions detected (passes through building)
The yes-no setting, I tried to add a script to reset the house position to start. It stopped triggering collision. Then I tried to stop the walk animation on collision. It results in glitchy behavior and the building still moves a bit.
Your answer
Follow this Question
Related Questions
Using same animation with different sprite sheets 0 Answers
Setting animator parameter on a single instance of a prefab sets the parameter for all instances 3 Answers
Sprites: Project Sprite to Mesh, allow for bending of sprites for 3d environments 0 Answers
Sprite Rect Moves Between Frames 0 Answers
Extra frame in simple animations? 0 Answers