Flat Meshrenderer - 3D becomes 2D?!
I was working with arrows when THIS happened:
Here is what happens. When my arrow hits a surface, it calls transform.setParent(collision.transform, true); Without this call, the arrow looks perfectly fine when it sticks into a surface, except that if I were to move the wall, the arrow doesn't move with it. This is obviously a problem when I'm going to introduce moving targets.
This seems to not really be a scaling problem per se... I HAVE tried to manually scale the arrows right so I could figure out what the problem was. Oddly enough, it was impossible to get them to stick out of the wall... I could only rotate them as on a 2D surface, like they were running parallel to the wall.
I am lost for words as to what is happening here, so if someone knows the problem (and even better, the solution), I would be greatly in your debt!
Peace!
P.S.
Note that both the glass wall and the arrow have their mesh as a child, as per good practice.
Your answer
Follow this Question
Related Questions
How to use different texture/color in one Mesh with calculated position? 0 Answers
Material Showing in Scene View, Not at all in Game View. 0 Answers
Rotation snapping to 180 degrees with transform.rotation 1 Answer
Multiplayer THIRD PERSON CHARACTER SPINE ROTATION PROBLEM 1 Answer
transform.LookAt() makes object flip around when too close? (FPS Gun Position Question) 0 Answers