Locking Y and X Rotation when locked to position of face?
Hey there! I have a 2D effect that I am trying to create, and trying to not do in 3D (because my skills are so so) I have an image of a doctor's body, and I have locked the position to the nose of the user. My problem is, i want the Y & X rotation to be constrained to 0 so that the image would stay more in the place of the body rather than rotating with the face. Is this possible?
Hi Topher,
You can do this using a Face Sprite but it requires a lot of tweaking to get right. The two keys to this are changing the Look At component's "World Up" to "Scene Y" to lock its rotation, and then trying to get the sprite's pivot point to match with the head's pivot point (around where the head and neck meet).
1. Add a new Face Sprite (Add New -> Face Sprite)
2. On the Sprite, set Texture to the one you want to use. Set Fill Mode to "stretch" and change the Look At's World Up direction to Scene Y.
3. On the Sprite Binding, set "Attach To Point" to "Head Center"
4. In the 2D Scene, position the Sprite to around where you want it to be relative to the face.
5. In the 2D Scene, drag the Sprite's pivot point to be right under the chin, around the neck area.
6. Manually set the Sprite Binding's Transform position to add an offset (and get it closer to the head's pivot point). I used a value around (0, -2.5, -30).
7. Set an additional offset on the Sprite's Transform. I used (0, 0, -8).
Hopefully these steps will get you close to what you want, but you'll probably need to tweak the pivot points and offsets for a while to get it perfect for your case. Let me know if you need any more help!