TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ömer Faruk Çalışkan
NA
45
1.7k
How to limit mouse rotation at Z ?
Aug 24 2020 12:01 PM
my code here but it don't help though :(
public
class
Pick : MonoBehaviour {
public
float
RotationSpeed = 5;
void
Update ()
{
Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition)
transform.rotation = Quaternion.LookRotation(Vector3.forward, mousePos - transform.position);
}
}
Reply
Answers (
0
)
I need help to make a c# script
How to get my own created VSIX Extension to another Visual Studio Proj