- Home /
How to have camera follow x&y only of another object?
Working on a minimap. Trying to make so, camera is following through script, because parenting them doesnt work because of FPC mouseLook.
I am not sure what you mean. I think I could be able to help you, could you explain better your problem?
Simply don't parent the $$anonymous$$imap camera to the FPC's camera, parent it to the character controller itself. If the $$anonymous$$imap camera happens to have a mouselook script, you should disable that as well.
Answer by 1337GameDev · Feb 19, 2013 at 04:01 PM
Just have a script set the location of your camera ( or parent of camera and such) to the object x and y using transform.position.Set(). You can also have a variable offset so it follows behind and such.
Answer by kolmich · Feb 23, 2013 at 08:35 PM
Hi, instead of developing the whole minimap on your own you can tryout the popular KGFMapSystem. It is fully customizeable and very well tested. When you read the documentation you will also see that developing a good minimap is lots of work!! We spent about 4 month developing the KGFMapSystem and we are still improving it...
webdemo->http://www.kolmich.at/kolmich/demo/kgf/KGFMinimap/KGFMinimap.html
assetstore->http://u3d.as/content/kolmich-creations/kgfmap-system/3bf
documentation->http://www.kolmich.at/documentation/
If you have any questions you contact me on www.kolmich.at/forum or support@kolmich.at