|
When player clicks on object the player (fps) is then moved to the position specified but I am having difficulty get the player then to face the right way to look at an object on the wall at the same time: GameObject.Find("ScottController").transform.position = new Vector3 (-6.103598, 6.474478, 8.466862); I have tried simialr ways to above for the rotation I was hoping it was something as simple as: GameObject.Find("ScottController").transform.rotation = new Vector3 (0, 360, 0); but I was wrong
(comments are locked)
|
|
Try using the
Where target is the object that you clicked on. Thank you will look at that
Mar 26 '10 at 04:32 PM
Scott 2
I have had a try but won't look at the object (cube) only assets
Mar 26 '10 at 05:30 PM
Scott 2
@Scott check this answer http://answers.unity3d.com/questions/6539/click-3d-objects-markers-in-the-distance-causing-the-camera-to-snap-to-that-lo/6540#6540 for more details.. it's more or less the same..
Mar 26 '10 at 07:25 PM
Lipis
(comments are locked)
|
