Unity 3d Create a Full Game Cannon Blast Cannon Controller and Firing Cannon with Physics

Reza.m
113 بار بازدید - 7 سال پیش - Hello Coders, in this video
Hello Coders, in this video Jared shows us how to create a C# script in Unity 3D that can manage the rotation of our cannon by clicking and dragging gameobjects in our scene. We use several functions in order to achieve the gameobject rotation that we are looking for and we make use of raycasts in order to get our mouse position in the scene. One of the most important functions in this script is the camera.ScreenPointToRay function, and we also lerp Quaternions in order to smoothly rotate our gameobject in
7 سال پیش در تاریخ 1396/06/15 منتشر شده است.
113 بـار بازدید شده
... بیشتر