What are Lookat and Body in Virtual Cameras?
Objective: Talk about the Lookat and Body of the Virtual Camera.
In a previous article we look at assigning a target to the Lookat variable. Today we will look at assigning one manually and look at the Body component. We will cover more on the body in the next article.
For the Camera to have a target it will need to have it assigned by code or in the inspector.
As you can see above, we have a capsule assigned now. This gives the camera to have something to aim at.
Above Look At, there is another field that we can assign a transform to. This one is important if you want to have the camera follow the assigned transform. Having something in Follow is important for the Body section of the camera. If there is nothing assigned, there will be a caution.
To fix this caution, just assign something.
Body has multiple options like aim does. The Body options are for the different ways the camera will follow the assigned target. By default the body will be set to Transposer. We will look more deeply into the options tomorrow. Thank you for reading and have a wonderful day!