- Home /
Gameobject world position to camera position
Hi, I want to make an effect of winning pose. Like if I touch a character, then the character will disappear from the world and it will appear at the center of camera and animate some winning pose. (Like final fantasy or other role playing game winning)
So up to now, I did make character to response when it touched. But I do not know how to make a character to be center of the camera ...
What would you guys suggest to do such a thing?
Answer by christoph_r · Dec 05, 2016 at 09:26 AM
Either parent it to the camera and set your player's local position and rotation or use the inverse transform methods of transform to set local positions. In your example, you would most likely want the local X and Y position to be zero and Z to be some positive value (try 5 for a start, if using average unity measurements.)
I'm sorry can you explain a bit more precisely ? Your answer above isn't long enough to understand
Thanks for your answer, but i just decided to use the other camera to render to the display at the moment when it is needed
Your answer
Follow this Question
Related Questions
I want to move a cube with rotation but I find this problem 1 Answer
Physics.OverlapSphere() not working after using pool of objects 0 Answers
How could I make a gameobject move above my players head during an animation and then delete it? 1 Answer
Y-Positionen angleichen / Align the Y positions 0 Answers
How to set to game objects's position from 2 different game objects arrays equal to each other? 0 Answers