Question by
Ramus1973 · Jun 10, 2018 at 10:33 AM ·
local axistranform.position
Position object in relation to player local axis
I'm trying to re-position an object in relation to the local axis of the player object. Any help would be appreciated as it's driving me nuts.
Comment
Which set of axes are you talking about? Their local position or rotation?
I'm making a top down Asteroids type shooter and I'm trying to reposition objects in relation to the player axis of rotation (back, front, left, right). The objects I'm repositioning don't move so I don't care what their rotation is. I just need to find an x,z coordinate at each of the 4 sides of the player assu$$anonymous$$g the player rotates around the y axis. The script I'm using is not attached to the player its attached to the object that moves. Hope this helps explain what I'm trying to do.............
Your answer
![](https://koobas.hobune.stream/wayback/20220612164457im_/https://answers.unity.com/themes/thub/images/avi.jpg)