Kinematic and Dynamic boides
Hi, I'm using unity 2018 and I have ran in to some issues. I have a player rigidbody2D dynamic. and an enemy rigiddbody2D kinematic.
I have a box that I want to be able to move with my player character. The box also have a rigidbody2D dynamic. I can move the box with my player character, and I do have a trigger collider on my enemy.
My enemy does not turn around when hitting the dynamic box, but pushes the box to the wall (then sometimes through the wall, thus making it fall in to nothingness) or get stuck inside of the box making its trigger to turn around, to make it spin back and forth within the box.
I think this have something to do with layermask, but im very new to unity and c# and I have been trying to wrack my brain around this for quite sometime now.
Any idea how I make the box able to be pushed/pulled by the player, but making the enemy to turn around when it collides with it?
Your answer
![](https://koobas.hobune.stream/wayback/20220612192235im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
transform.localScal not flipping 0 Answers
Trying to add Directional Attacking 0 Answers
How to have UI Manager come up on collision? 0 Answers
How To Do Basic 2D Movement? 1 Answer
Parsing error? 1 Answer