- Home /
set collision force after isKinematic disabled
I have animated objects with rigidbodies (2D) and isKinematic enabled. After player collides with the object, I want to set isKinematic false and make the object react as if in a real collision (e.g. bounce outwards from the player with appropriate force). How would I set the forceand direction to the object after isKinematic is disabled so that it would look like two non-kinematic objects colliding?
I would use a raycast to detect if i am going to collide with anything that i am interested in, and if so i would do rigidbody.is$$anonymous$$inematic = true;
just before the collission.
Your answer
Follow this Question
Related Questions
Character slows down when running against a wall (2D) 1 Answer
,My Character is falling through my Tilemap 0 Answers
How do I prevent a Kinematic Rigidbody2D from moving a Dynamic Rigidbody2D on Collision? 1 Answer
Collider wont collide. But I have done everything correctly. 1 Answer
How to select the trigger layer on a Box Collider 2D 2 Answers