How to Recreate Genshin Impact's Look At Nearby Objects Mechanic in Unity VRoid
ReForge Mode - Unity Tutorials
In this tutorial, we will modify the UniVRM plugin and write a script to make your character turn their head to look at nearby objects, just like in Genshin Impact! Fast and easy!
If this video helps you, don't forget to like and subscribe!
Download this project on GitHub: https://github.com/FFaUniHan/Unity_VRoid_LookAt_Nearby_Objects
Links to other resources: Smoothing Functions: https://www.youtube.com/watch?v=gqU1t1jpmDw Excluding objects to look at: https://www.reddit.com/r/Genshin_Impact/comments/qh7gsi/what_did_ayaka_do_to_xinyan/
All Pastebin Scripts: Modified VRMLookAtBoneApplyer: https://pastebin.com/q0UmZnWN Look.cs Part 1: https://pastebin.com/SZJv7uEX Look.cs Part 2: https://pastebin.com/pZYSB92z Look.cs Part 3: https://pastebin.com/ANvdUx1d Look.cs Part 4: https://pastebin.com/eMikJgWc Look.cs Optimization getDistance: https://pastebin.com/rD5FRMHe
Timestamps 00:00 Intro 00:29 Head Tracking 01:48 Head Horror Problem 02:03 Setup the Objects 03:22 Solution to Head Horror Problem 03:38 Simple "Look" Script 06:06 Upgrading "Look" Script with Lists! 08:54 Smoothing the Head Movement 10:43 Excluding Objects to Not Look! 11:47 Excluding with Collision Mask 13:34 Excluding with Tags 15:23 Optimization Ideas 15:54 Outro 16:15 End Cards
#VRoid #Unity #Tutorial #VRoidStudio ... https://www.youtube.com/watch?v=hAQRk8s0Oo8
130393862 Bytes