Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial Unity MouseController #2

Open
jonyfries opened this issue Dec 2, 2018 · 1 comment
Open

Tutorial Unity MouseController #2

jonyfries opened this issue Dec 2, 2018 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jonyfries
Copy link

Thanks for creating an issue/feature request! Please use the template below to ensure you have all the necessary information.

Quick Description

ControllablePlayer doesn't move with the mouse after adding MouseController to it.

Explanation

Camera.main.ScreenToWorldPoint(Input.mousePosition) always returns zero.

For Issues

Unity version 2018.2.18f1

I resolved ScreenToWorldPoint always returning zero by changing it to:
Camera.main.ScreenToWorldPoint(Input.mousePosition + new Vector3(0, 0, 10))

@JamJar00
Copy link
Member

Sounds like this is something broken in Unity now... Cheers for pointing it out! I'm going to move this to the new documentation repo.

@JamJar00 JamJar00 transferred this issue from DarkRiftNetworking/DarkRift Dec 17, 2018
@JamJar00 JamJar00 added the bug Something isn't working label Dec 17, 2018
@JamJar00 JamJar00 added the good first issue Good for newcomers label Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants