- Home /
Using animated transform to push object away? 2D
I'm trying do make a head bump mechanic, that lets the player shoot the characters head a bit out, (and then rectract) and use this force to push him/herself in the opposite direction.
So now i've done this with a collider, which has its transport animated to do the "bump" motion.
And it works for pushing other objects, but the character itself is unaffected - as in it doesn't move.
The bump collider is a child object of the character, using different layers not to collide with each other.
Everything is physics based, character is controlled by applying force
It's all in 2D
Hope someone can explain why physics doesn't work as expected!
Your answer
Follow this Question
Related Questions
What is the best/easiest way to align a 2D rigidbody to specific sections of a sprite? 1 Answer
How to check if my enemy hits the ground at a certain velocity then add explosive force. 1 Answer
Gravity Direction Change 2D 1 Answer
How to make slider joint immovable by the player 1 Answer
2D Animation workflow 0 Answers