P
P
ProgramDevel2021-10-19 20:28:40
Unity
ProgramDevel, 2021-10-19 20:28:40

The object is created crooked, how to fix it?

There is a game on Vuforia
Like minecraft
616eff677ab73438497753.png
According to the script, a new object is created next to the cube.
Everything works on the PC, but on the phone, when you put a new object, it turns to the camera and stands crooked.

As I understand it, the problem is in the coordinates, how to solve it?

Thank you all at once!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nekit Medvedev, 2021-10-20
@NIKROTOS

you can try to check if the normals are parallel, and if they are not parallel, rotate the cube so that they are parallel.
Perhaps the error is that local coordinates are used. The block is a child of whom? Maybe it's worth making all the blocks children of one object (not the player and the camera), so that they are positioned relative to it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question