- Home /
2D colliders for a rotating 3D cube
Basically, when I rotate a 3D object in a 3D space I want a 2D character to have an accurate collider to be able to run on an object. I put a 2D collider on a 3D object by creating two empty children objects with a 2D colliders on them with one rotated at 90 degrees but this can only get me so far. The issue obviously appear anywhere between 0 and 90. How can I do this correctly? At the pic you can see the cube rotated at 45 degrees (his 3d collider shown with green lines), and two white-sprited collider gameobjects as a result.
Answer by viesc123 · Mar 14 at 07:50 PM
Have you tried adding a 2nd 2D collider that's rotated 90deg?
Yes, the screenshot is with two of them. One 0deg, another 90deg. Both white. Cube is at 45deg
Your answer
Follow this Question
Related Questions
How to make 3D colliders on sprites? 0 Answers
Retrieve 2d primitives from 3d colliders 1 Answer
3d collider mesh to 2d collider mesh 0 Answers
Physics - strange jumps. 2 Answers