- Home /
Scripting for object follower/facer?
I imagine it being quite simple, but how exactly do i script to get objects/items to follow the player/camera of the player everywhere they go, for a brief example of what gibberish i'm speaking
i mean this https://www.youtube.com/watch?v=PgQ07740HHs The 2D objects on the floor are following the camera per frame, could someone explain to me how this is achieved/ the script of doing this?
No reply, i figured people always said "Go to unity answers if you have any questions, they have professionals there who'll help you" but seems like answering takes years upon years so i'm sure i'm switching to another engine
If you want precise answer :
Brings proofs you have made researches and you have tried something
Explain exactly what you are looking for
$$anonymous$$aybe you are looking for billboards :
http://wiki.unity3d.com/index.php?title=CameraFacingBillboard
https://docs.unity3d.com/$$anonymous$$anual/class-BillboardAsset.html
$$anonymous$$oreover, it's completely useless to "threaten" you will leave Unity for an other game engine. You asked your question less than 48 hours ago, the entire community (including professionals) are here during their free time and they do not owe you anything. If you are not satisfied, feel free to switch to another game engine with their own community.
Before you get all hurt, recognise that people here are trying to help people who have tried to help themselves, asking someone to go and watch a youtube video and write you a script when you have provided no evidence that you have tried anything yourself yet, is not going to yield any results.
Answer by Matt1000 · Mar 16, 2017 at 06:36 AM
It is quite simple indeed, unity has a built-in method for that... Searh about this: https://unity3d.com/es/learn/tutorials/topics/scripting/look?playlist=17117 and perhaphs you may add it constraints so it doesnt move wherever it wants. Constraints: https://docs.unity3d.com/Manual/class-Rigidbody.html
And try to be more relaxed your post has been hours only ;D
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
jump with character controller best way? 1 Answer
Renderer on object disabled after level reload 1 Answer
Click object to move player/object 1 Answer