- Home /
Problem with collision detection in an animated object
I'm trying to create a simple fighting game scene. I have an animated model that contains an animation of different strokes.
To move, I use the following code
transform.Translate(new Vector3(0,0, 0.5f * Time.deltaTime));
and now I have the problem of collision detection. Character passes through a wall, if you make it a solid object falls through the floor and it is impossible to move it.
I tried to apply colliders as child objects, tried to make a solid, tried to use Mesh Collider. None of this helped me.
That is, I need to adequately move the object and get its collision. How to create a mesh that will wrap around the entire body of the object?
Your answer
Follow this Question
Related Questions
Make mesh collider constantly change 1 Answer
Is Mesh Collider possible on an animated plane ? 0 Answers
Making two mesh colliders collide 2 Answers
Mesh Collider won't draw the mesh I am telling it to? 1 Answer
Creating a spherical world 1 Answer