- Home /
 
               Question by 
               pandabear · Sep 17, 2016 at 09:16 AM · 
                2d2d-platformerrigidbody2dplatformer  
              
 
              Moving platform player bounce when moving down
I have this moving platform(moves up and down) but everytime the player gets into that platform the player sort of like bounces when the platforms moves downwards 
on the red arrow, you can see the player and the platform has a gap when platform is moving downwards. Is there a way to fix this?
 
                 
                untitled.png 
                (102.3 kB) 
               
 
              
               Comment
              
 
               
              Seta 2D Physics $$anonymous$$aterial in the 2D collider, you can define how it will bounce in the physics material
 
               Best Answer 
              
 
              Answer by Masterio · Sep 17, 2016 at 07:19 PM
You can attach the player to the platform (on platform touch). Detach player if he not collide with platform.
player.transform.SetParent(platform.transform)
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                