Closed shurunxuan closed 6 years ago
If we are adding a package like this, we should probably link the license terms for it. https://docs.unity3d.com/Packages/com.unity.cinemachine@2.2/license/LICENSE.html https://unity3d.com/legal/licenses/Unity_Companion_License?_ga=2.143321205.1569733184.1541344564-964806764.1539006058
These terms seem acceptable to me. Expect further review shortly.
There are a whole bunch of parameters in Cinemachine scripts and I have tried to adjust those. The Cinemachine Collider has a parameter called "Effort to be made" or something like that. I adjusted it to its maximum but because our ceiling is too thin it still easily goes through it. I will try to fix this.
For first person view, the problem is that if we don't want it to clip into the wall or the floor, the body of the drone will be seen; if we don't want it to see the body of the drone, it will clip. I guess I'll turn off the mesh renderer of the drone when we enter first person mode in the following commit.
@Markadelf Should we add some logic that when the drone is using a tool, all other tools will be disabled? Like, we should not be able to use two tools simultaneously.
Yeah, that sounds good.
@Markadelf Try this. I calculated the pitch angle restriction so that the third person camera will not go through the ceiling or the floor. Also, to fix the first person camera, I used the default parameters of a camera and disabled the drone mesh renderer to hide it.
Trello URL: https://trello.com/c/fCZ3a6Wn/58-camera-refinement-2-points
Story to be tested: Refined Camera
Functionality:
Testing Instructions:
Notes: If there are errors showed up, be aware to install the Cinemachine plugin from
Window
-Package Manager
in the Unity Editor.