#Oh by the way use mouseHitPoint thats

1 messages · Page 1 of 1 (latest)

drowsy warren
#

So the error is running in "float mousey = mouselook.y * mousesensitivity * Time.deltaTime;" so how do i add mousehitpoint

turbid ferry
#

I think mouse input is already framerate-indpendent, you shouldnt multiply that by deltaTime

noble epoch
#

if its 3D its not that simple. Also I would need more info on where the mouselook.y is located at and where it comes from because what youre doing now is how I understand is directly taking your screen input data which is incorrect since it is basically only raw screen data. You need a vector3 translated coordinate of mouse to use it as mouselook.y

Also because I dont know what mouselook is or where it comes from I only guessed whats going on, cant know for sure

drowsy warren
noble epoch
#

try this and tell me what it does:

#

What i gave you is actual point of the mouse

#

on world

#

Probably not gonna work since you need to look in that direction

#

we will see

drowsy warren
#

ok i'm not sure how to use it because i was just trying to fix errors and finish youtube video so i'm not sure how to proceed

noble epoch
#

I can help as much as I can atleast

#

Try this then tell me what the result is. Youre trying to move your camera towards the point right if I read it correctly?

drowsy warren
#

in game or scene because i haven't got playercontroller working?

noble epoch
#

yeah this thing is quite complicated to make in general the movement system itself. a lot of work is needed to make one

drowsy warren
#

yea that is why i have been trying to follow a ton of youtube videos but i keep falling into issues because it can be outdated and i won't know how to fix it

noble epoch
#

well dont follow videos too much do it yourself as much as you can. Start with something more simpler than this kind of control. Make a game maybe even on 2D to start somewhere, make a copy of something. I did flappy birds myself. What youre doing right now is complicated stuff. Make maybe game where you move naturally without pressing anything and you just have to avoid obsticles, this way you dont have to deal with movement this much.

drowsy warren
#

ok right now i'm not skilled in code so i'd been trying to use youtube tutorial to help learn would there be a better way then?

noble epoch
#

the better way is doing everything yourself without the videos. Why? Because you dont learn anything from copy-pasting you will see in a couple of weeks you know nothing from it. I've been there and thats how I burned myself pretty hard.

The better way is (judging by the word of some of the experienced developers) is taking a game thats already made and making it yourself without any help. When you meet a problem you learn on how to solve it on the internet but the rule is never copy anything just read the general solution to the problem. Maybe if you really dont know how to do it copy part of it and try to understand it. Thats how I did it and I listened to them experienced boys and I must say im pretty impressed by how well it works.

#

Ofcourse dont forget on the part where you learn all kind of new "commands" if i can put it this way. Like for example rigidbody.Addforce. You need to google to get the solution and that is it, new commands, more googling, more commands you learn and so on. I wrote them down in a notepad so i know where to find them if i need them again. Then you remember them slowly but surely too.

#

the proper term isnt commands, not sure what the proper term would be

drowsy warren
#

alright sounds like a good plan I'll try it out thanks so much for the help

noble epoch
#

np, good luck

turbid ferry
#

@drowsy warren ok so i just took a look at your code.

#

you have spelled Awake, Update, OnEnable and OnDisable with lowercase letters.

#

those are Unity methods and should use the proper capitalization, or they wont get called

#

currently, your code does absolutely nothing.