rotate object on mouse drag click unity on y axis | transform.rotatearound example unity c#

rotate object on mouse drag click unity on y axis | transform.rotatearound example unity c#

Malik Shahzaib Official

5 лет назад

10,541 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

maya fsn
maya fsn - 18.11.2020 12:03

Hi
i have one problem while i am making this game.
The Ball is moving in all axis if i code for only to jump in Y-Axis,After colliding with the Ring the Ball is moving here and there.
Can you pls suggest me how to solve this issue.

Ответить
Bit Code
Bit Code - 06.09.2020 22:56

Viral comb like please if you want game development because I starting Unity 3d series soon

Ответить
Ahmad Raza
Ahmad Raza - 17.11.2019 11:59

That's nice

Ответить
Captain Ricco
Captain Ricco - 06.10.2019 00:52

whoa, what the hell??? a commercial!!! ??? You are monetizing this video. Now I must go, but first, search for "hail my toenails' to see my real reaction to this video.

Ответить
Mill Pill
Mill Pill - 25.01.2019 06:12

Hello , Use this Instead, For rotation :

if (Input.GetMouseButton (0)) {
float rotx = Input.GetAxis ("Mouse X") * 15f * Mathf.Deg2Rad;
transform.RotateAround (Vector3.up, -rotx);
}

Ответить
ProGamers GR
ProGamers GR - 30.12.2018 16:16

i want to rotate with my finger ( the game for smartphone) what code should i write?

Ответить
Matpathi Akash
Matpathi Akash - 05.12.2018 21:31

Awesome bro 😍😍 plz.. make more videos it's very good

Ответить
Meerab Chaudhary
Meerab Chaudhary - 17.09.2018 14:21

👌👌

Ответить
Wildan Tamvan
Wildan Tamvan - 10.09.2018 08:32

idk what alien language you are talking..

Ответить
Saad khan
Saad khan - 09.09.2018 17:07

Good bro

Ответить