Question by
acmuraretu · Jan 01, 2020 at 09:26 PM ·
oncollisionenterjoints
How to snap/ joint multiple cubes on each side but perfectly aligned,
I am new to unity , sorry for my English ... I am trying to make a game, the user can rotate and move each cube for 90 degrees when a side matches other side the user can move the cube next to an other cube and I want to align programmatically the cubes perfectly, I created a joint in OnCollisionEnter( I tried fixed and hinge) but I can't position the cubes to align one face to an other face. If I change the position to a cube they begin to rotate indefinitely . thank you for your suggestions and help ,
Comment