Question by 
               Yukken · Jun 01, 2017 at 05:18 AM · 
                2draycast2d-platformerphysics2dplatformer  
              
 
              2d platformer knockback without addforce
I'm trying to implement knockback in my 2d platformer which is based on raycasts.Using rigidbody2d.addforce works well but it makes me uncomfortable.As far as I know,combining physics with a raycast based controller is a bad Idea.Are there any other ways to do it.
               Comment
              
 
               
              Answer by ismaelnascimento01 · Jun 01, 2017 at 08:28 PM
Check link: http://answers.unity3d.com/questions/781899/another-alternative-of-rigidbodyaddforce.html
The answer in the link tells me to use fiexdUpdate.However,since I'm using a raycast based controller,I'm checking for collisions in update.I want to apply knockback when the player collides with a spike.So,I can't use fixedUpdate.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                